Skip to content

Commit 99fd2c2

Browse files
committed
(maint) Formatting + whitespace fix
1 parent 2745260 commit 99fd2c2

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/chocolatey/infrastructure.app/services/NugetService.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright © 2017 - 2021 Chocolatey Software, Inc
1+
// Copyright © 2017 - 2021 Chocolatey Software, Inc
22
// Copyright © 2011 - 2017 RealDimensions Software, LLC
33
//
44
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -19,25 +19,24 @@ namespace chocolatey.infrastructure.app.services
1919
using System;
2020
using System.Collections.Concurrent;
2121
using System.Collections.Generic;
22-
using System.Globalization;
2322
using System.IO;
2423
using System.Linq;
2524
using System.Net;
26-
using NuGet;
2725
using adapters;
26+
using chocolatey.infrastructure.app.utility;
2827
using commandline;
2928
using configuration;
3029
using domain;
3130
using guards;
3231
using logging;
3332
using nuget;
33+
using NuGet;
3434
using platforms;
3535
using results;
3636
using tolerance;
3737
using DateTime = adapters.DateTime;
3838
using Environment = System.Environment;
3939
using IFileSystem = filesystem.IFileSystem;
40-
using chocolatey.infrastructure.app.utility;
4140

4241
//todo: #2575 - this monolith is too large. Refactor once test coverage is up.
4342

@@ -934,7 +933,7 @@ public virtual ConcurrentDictionary<string, PackageResult> get_outdated(Chocolat
934933
config.Prerelease = true;
935934
}
936935

937-
SemanticVersion version = null;
936+
SemanticVersion version = null;
938937
var latestPackage = NugetList.find_package(packageName, null, config, packageManager.SourceRepository);
939938

940939
if (latestPackage == null)
@@ -1119,7 +1118,7 @@ public virtual void remove_packaging_files_prior_to_upgrade(string directoryPath
11191118
// script could be incorrectly left in place during an upgrade operation. To guard against this,
11201119
// remove any Chocolatey Packaging scripts, which will then be restored by the new package, if
11211120
// they are still required
1122-
var filesToDelete = new List<string> {"chocolateyinstall", "chocolateyuninstall", "chocolateybeforemodify"};
1121+
var filesToDelete = new List<string> { "chocolateyinstall", "chocolateyuninstall", "chocolateybeforemodify" };
11231122
var packagingScripts = _fileSystem.get_files(directoryPath, "*.ps1", SearchOption.AllDirectories)
11241123
.Where(p => filesToDelete.Contains(_fileSystem.get_file_name_without_extension(p).to_lower()));
11251124

0 commit comments

Comments
 (0)