Skip to content

Commit ff0ed40

Browse files
committed
(cleanup) resharper cleanup
1 parent d24213d commit ff0ed40

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/GitVersionExe/SpecifiedArgumentRunner.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,14 @@ static bool RunMsBuildIfNeeded(Arguments args, string workingDirectory, VersionV
9494

9595
if (string.IsNullOrEmpty(args.Proj)) return false;
9696

97-
Logger.WriteInfo(string.Format("Launching build tool {0} \"{1}\" {2}", BuildTool, args.Proj, args.ProjArgs));
97+
Logger.WriteInfo($"Launching build tool {BuildTool} \"{args.Proj}\" {args.ProjArgs}");
9898
var results = ProcessHelper.Run(
9999
Logger.WriteInfo, Logger.WriteError,
100-
null, BuildTool, string.Format("\"{0}\" {1}", args.Proj, args.ProjArgs), workingDirectory,
100+
null, BuildTool, $"\"{args.Proj}\" {args.ProjArgs}", workingDirectory,
101101
GetEnvironmentalVariables(variables));
102102

103103
if (results != 0)
104-
throw new WarningException(string.Format("{0} execution failed, non-zero return code", runningOnMono ? "XBuild" : "MSBuild"));
104+
throw new WarningException($"{(runningOnMono ? "XBuild" : "MSBuild")} execution failed, non-zero return code");
105105

106106
return true;
107107
}
@@ -111,14 +111,14 @@ static bool RunExecCommandIfNeeded(Arguments args, string workingDirectory, Vers
111111
{
112112
if (string.IsNullOrEmpty(args.Exec)) return false;
113113

114-
Logger.WriteInfo(string.Format("Launching {0} {1}", args.Exec, args.ExecArgs));
114+
Logger.WriteInfo($"Launching {args.Exec} {args.ExecArgs}");
115115
var results = ProcessHelper.Run(
116116
Logger.WriteInfo, Logger.WriteError,
117117
null, args.Exec, args.ExecArgs, workingDirectory,
118118
GetEnvironmentalVariables(variables));
119119

120120
if (results != 0)
121-
throw new WarningException(string.Format("Execution of {0} failed, non-zero return code", args.Exec));
121+
throw new WarningException($"Execution of {args.Exec} failed, non-zero return code");
122122

123123
return true;
124124
}

0 commit comments

Comments
 (0)