Skip to content

Commit baf4bd2

Browse files
committed
move conditional to outer scope
1 parent ccb8e63 commit baf4bd2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/GitVersionCore/VersionCalculation/BaseVersionCalculator.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,13 @@ public BaseVersion GetBaseVersion()
3030
var baseVersions = strategies
3131
.SelectMany(s =>
3232
{
33+
if (s is FallbackVersionStrategy)
34+
return s.GetVersions();
35+
3336
return s.GetVersions()
3437
.Where(v =>
3538
{
3639
if (v == null) return false;
37-
if (s is FallbackVersionStrategy) return true;
3840

3941
log.Info(v.ToString());
4042

0 commit comments

Comments
 (0)