mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-24 19:14:56 +01:00
Fix some analyzer warnings
Some changes: * Don't omit braces * Fix culture sensitive string compare * Define accessibility functions I restricted myself to these 5 files, for now :p
This commit is contained in:
@@ -224,7 +224,7 @@ namespace Jellyfin.Server
|
||||
.GetManifestResourceStream("Jellyfin.Server.Resources.Configuration.logging.json"))
|
||||
using (Stream fstr = File.Open(configPath, FileMode.CreateNew))
|
||||
{
|
||||
await rscstr.CopyToAsync(fstr);
|
||||
await rscstr.CopyToAsync(fstr).ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
var configuration = new ConfigurationBuilder()
|
||||
@@ -334,11 +334,9 @@ namespace Jellyfin.Server
|
||||
}
|
||||
else
|
||||
{
|
||||
commandLineArgsString = string.Join(" ",
|
||||
Environment.GetCommandLineArgs()
|
||||
.Skip(1)
|
||||
.Select(NormalizeCommandLineArgument)
|
||||
);
|
||||
commandLineArgsString = string.Join(
|
||||
" ",
|
||||
Environment.GetCommandLineArgs().Skip(1).Select(NormalizeCommandLineArgument));
|
||||
}
|
||||
|
||||
_logger.LogInformation("Executable: {0}", module);
|
||||
|
||||
Reference in New Issue
Block a user