Skip to content

Commit 974cf5d

Browse files
fixed a case where the solution would never update, until the first hour passes (#750)
1 parent 8d0f5cb commit 974cf5d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Nuke/LocalBuildConventionsAttribute.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ private static void EnsureSolutionIsUptoDate(INukeBuild nukeBuild, IHaveSolution
2727
using var _ = File.Create(path);
2828
_.Close();
2929
}
30-
31-
if (File.GetLastWriteTime(path) + TimeSpan.FromHours(1) > DateTime.Now) return;
30+
else if (File.GetLastWriteTime(path) + TimeSpan.FromHours(1) > DateTime.Now)
31+
{
32+
return;
33+
}
3234

3335
var attributes = nukeBuild.GetType().GetCustomAttributes(true)
3436
.OfType<SolutionUpdaterConfigurationAttribute>()

0 commit comments

Comments
 (0)