Skip to content

Commit

Permalink
remove empty entries
Browse files Browse the repository at this point in the history
  • Loading branch information
ferventcoder committed Dec 16, 2016
1 parent 77c3b12 commit d344d47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CommandLine/Commands/DownloadCommandBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ protected void CalculateEffectivePackageSaveMode()
EffectivePackageSaveMode = PackageSaveModes.None;
if (!string.IsNullOrEmpty(packageSaveModeValue))
{
foreach (var v in packageSaveModeValue.Split(';'))
foreach (var v in packageSaveModeValue.Split(new[] { ';' }, StringSplitOptions.RemoveEmptyEntries))
{
if (v.Equals(PackageSaveModes.Nupkg.ToString(), StringComparison.OrdinalIgnoreCase))
{
Expand Down
2 changes: 1 addition & 1 deletion src/CommandLine/Common/ResourceHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static string GetLocalizedString(Type resourceType, string resourceNames)
}

var builder = new StringBuilder();
foreach (var resource in resourceNames.Split(';'))
foreach (var resource in resourceNames.Split(new[] { ';' }, StringSplitOptions.RemoveEmptyEntries))
{
var culture = LocalizedResourceManager.GetLanguageName();
string value = resourceManager.GetString(resource + '_' + culture, CultureInfo.InvariantCulture) ??
Expand Down

0 comments on commit d344d47

Please sign in to comment.