Skip to content

Commit 12c81cc

Browse files
committed
Fix formatting issues
1 parent fab0e06 commit 12c81cc

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/NerdBank.GitVersioning/ReleaseManager.cs

+10-10
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ public ReleaseInfo(ReleaseBranchInfo currentBranch) : this(currentBranch, null)
115115
[JsonConstructor]
116116
public ReleaseInfo(ReleaseBranchInfo currentBranch, ReleaseBranchInfo newBranch)
117117
{
118-
Requires.NotNull(currentBranch, nameof(currentBranch));
118+
Requires.NotNull(currentBranch, nameof(currentBranch));
119119
// skip null check for newBranch, it is allowed to be null.
120120

121-
this.CurrentBranch = currentBranch;
122-
this.NewBranch = newBranch;
121+
this.CurrentBranch = currentBranch;
122+
this.NewBranch = newBranch;
123123
}
124124
}
125125

@@ -235,7 +235,7 @@ public void PrepareRelease(string projectDirectory, string releaseUnstableTag =
235235
this.stderr.WriteLine($"Failed to load version file for directory '{projectDirectory}'.");
236236
throw new ReleasePreparationException(ReleasePreparationError.NoVersionFile);
237237
}
238-
238+
239239
var releaseBranchName = this.GetReleaseBranchName(versionOptions);
240240
var originalBranchName = repository.Head.FriendlyName;
241241
var releaseVersion = string.IsNullOrEmpty(releaseUnstableTag)
@@ -245,7 +245,7 @@ public void PrepareRelease(string projectDirectory, string releaseUnstableTag =
245245
// check if the current branch is the release branch
246246
if (string.Equals(originalBranchName, releaseBranchName, StringComparison.OrdinalIgnoreCase))
247247
{
248-
if(outputMode == ReleaseManagerOutputMode.Text)
248+
if (outputMode == ReleaseManagerOutputMode.Text)
249249
{
250250
this.stdout.WriteLine($"{releaseBranchName} branch advanced from {versionOptions.Version} to {releaseVersion}.");
251251
}
@@ -281,9 +281,9 @@ public void PrepareRelease(string projectDirectory, string releaseUnstableTag =
281281
Commands.Checkout(repository, originalBranchName);
282282
this.UpdateVersion(projectDirectory, repository, versionOptions.Version, nextDevVersion);
283283

284-
if(outputMode == ReleaseManagerOutputMode.Text)
284+
if (outputMode == ReleaseManagerOutputMode.Text)
285285
{
286-
this.stdout.WriteLine($"{originalBranchName} branch now tracks v{nextDevVersion} development.");
286+
this.stdout.WriteLine($"{originalBranchName} branch now tracks v{nextDevVersion} development.");
287287
}
288288

289289
// Merge release branch back to main branch
@@ -294,14 +294,14 @@ public void PrepareRelease(string projectDirectory, string releaseUnstableTag =
294294
};
295295
repository.Merge(releaseBranch, this.GetSignature(repository), mergeOptions);
296296

297-
if(outputMode == ReleaseManagerOutputMode.Json)
297+
if (outputMode == ReleaseManagerOutputMode.Json)
298298
{
299299
var originalBranchInfo = new ReleaseBranchInfo(originalBranchName, repository.Head.Tip.Sha, nextDevVersion);
300300
var releaseBranchInfo = new ReleaseBranchInfo(releaseBranchName, repository.Branches[releaseBranchName].Tip.Id.ToString(), releaseVersion);
301301
var releaseInfo = new ReleaseInfo(originalBranchInfo, releaseBranchInfo);
302302

303303
this.WriteToOutput(releaseInfo);
304-
}
304+
}
305305
}
306306

307307
private string GetReleaseBranchName(VersionOptions versionOptions)
@@ -409,7 +409,7 @@ private SemanticVersion GetNextDevVersion(VersionOptions versionOptions, Version
409409
var currentVersion = versionOptions.Version;
410410

411411
SemanticVersion nextDevVersion;
412-
if(nextVersionOverride != null)
412+
if (nextVersionOverride != null)
413413
{
414414
nextDevVersion = new SemanticVersion(nextVersionOverride, currentVersion.Prerelease, currentVersion.BuildMetadata);
415415
}

0 commit comments

Comments
 (0)