aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/Program.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2019-01-23 20:08:50 +0100
committerBond_009 <bond.009@outlook.com>2019-01-24 20:14:19 +0100
commit8191efb90cb94727ee8a7626d2226d1d1451f047 (patch)
treea20db09a29b083d27c9aeaeaec959cdc09c5f581 /Jellyfin.Server/Program.cs
parent1d7d4c573875093b97a5929fdee976cd0dcbedea (diff)
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
Diffstat (limited to 'Jellyfin.Server/Program.cs')
-rw-r--r--Jellyfin.Server/Program.cs10
1 files changed, 4 insertions, 6 deletions
diff --git a/Jellyfin.Server/Program.cs b/Jellyfin.Server/Program.cs
index 0510548b5..c196a3f23 100644
--- a/Jellyfin.Server/Program.cs
+++ b/Jellyfin.Server/Program.cs
@@ -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);