Skip to content

Commit d24213d

Browse files
committed
(cleanup) resharper cleanup
1 parent 32063ff commit d24213d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/GitVersionCore/BuildServers/VsoAgent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public override string GenerateSetVersionMessage(VersionVariables variables)
3737
// For VSO, we'll get the Build Number and insert GitVersion variables where
3838
// specified
3939
var buildNumberEnv = Environment.GetEnvironmentVariable("BUILD_BUILDNUMBER");
40-
if (String.IsNullOrWhiteSpace(buildNumberEnv))
40+
if (string.IsNullOrWhiteSpace(buildNumberEnv))
4141
return variables.FullSemVer;
4242

4343
var newBuildNumber = variables.Aggregate(buildNumberEnv, ReplaceVariables);

src/GitVersionCore/GitPreparer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public string GetDotGitDirectory()
141141

142142
var dotGitDirectory = Repository.Discover(targetPath);
143143

144-
if (String.IsNullOrEmpty(dotGitDirectory))
144+
if (string.IsNullOrEmpty(dotGitDirectory))
145145
throw new DirectoryNotFoundException("Can't find the .git directory in " + targetPath);
146146

147147
dotGitDirectory = dotGitDirectory.TrimEnd('/', '\\');

src/GitVersionCore/Helpers/ProcessHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public static Process Start(ProcessStartInfo startInfo)
8181
// http://csharptest.net/532/using-processstart-to-capture-console-output/
8282
public static int Run(Action<string> output, Action<string> errorOutput, TextReader input, string exe, string args, string workingDirectory, params KeyValuePair<string, string>[] environmentalVariables)
8383
{
84-
if (String.IsNullOrEmpty(exe))
84+
if (string.IsNullOrEmpty(exe))
8585
throw new ArgumentNullException(nameof(exe));
8686
if (output == null)
8787
throw new ArgumentNullException(nameof(output));

src/GitVersionExe/ArgumentParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ public static Arguments ParseArguments(List<string> commandLineArguments)
225225
if (versionVariable == null)
226226
{
227227
var messageFormat = "{0} requires a valid version variable. Available variables are:\n{1}";
228-
var message = string.Format(messageFormat, name, String.Join(", ", VersionVariables.AvailableVariables.Select(x => string.Concat("'", x, "'"))));
228+
var message = string.Format(messageFormat, name, string.Join(", ", VersionVariables.AvailableVariables.Select(x => string.Concat("'", x, "'"))));
229229
throw new WarningException(message);
230230
}
231231

0 commit comments

Comments
 (0)