refactor: fix warnings in troubleshooting

This commit is contained in:
goaaats 2022-01-15 03:05:06 +01:00
parent f7432570fe
commit ae31f41f5e
No known key found for this signature in database
GPG key ID: F18F057873895461
2 changed files with 2 additions and 1 deletions

View file

@ -19,6 +19,7 @@ namespace Dalamud.Support
/// Send feedback to Discord.
/// </summary>
/// <param name="plugin">The plugin to send feedback about.</param>
/// <param name="isTesting">Whether or not the plugin is a testing plugin.</param>
/// <param name="content">The content of the feedback.</param>
/// <param name="reporter">The reporter name.</param>
/// <param name="includeException">Whether or not the most recent exception to occur should be included in the report.</param>

View file

@ -33,7 +33,7 @@ namespace Dalamud.Support
{
LastException = exception;
var fixedContext = context?.Split(new []{'\r', '\n'}, StringSplitOptions.RemoveEmptyEntries).FirstOrDefault();
var fixedContext = context?.Split(new[] { '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries).FirstOrDefault();
try
{