Skip to content

Commit

Permalink
Use string interpolation instead of string.format()
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelnoonan committed Aug 24, 2016
1 parent 42c7663 commit 869d64e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/Octopus.Cli/Diagnostics/LogExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ public static void TfsServiceMessage(this ILogger log, string serverBaseUrl, Pro
{
var workingDirectory = Environment.GetEnvironmentVariable("SYSTEM_DEFAULTWORKINGDIRECTORY") ?? new System.IO.FileInfo(System.Reflection.Assembly.GetExecutingAssembly().Location).DirectoryName;
var selflink = new Uri(new Uri(serverBaseUrl), release.Links["Web"].AsString());
var markdown = string.Format("[Release {0} created for '{1}']({2})", release.Version, project.Name, selflink);
var markdown = $"[Release {release.Version} created for '{project.Name}']({selflink})";
var markdownFile = System.IO.Path.Combine(workingDirectory, Guid.NewGuid() + ".md");
System.IO.File.WriteAllText(markdownFile, markdown);
log.Information(String.Format("##vso[task.addattachment type=Distributedtask.Core.Summary;name=Octopus Deploy;]{0}", markdownFile));
log.Information($"##vso[task.addattachment type=Distributedtask.Core.Summary;name=Octopus Deploy;]{markdownFile}");
}
}

Expand Down

0 comments on commit 869d64e

Please sign in to comment.