Skip to content

Commit 7d7f525

Browse files
committed
Fix incorrect for loop potentially causing issues at build failure
1 parent 7be536c commit 7d7f525

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/groovy/net/minecraftforge/gradle/ForgeGradleFlowAction.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ abstract class ForgeGradleFlowAction<P extends Parameters> implements FlowAction
3939
}
4040

4141
@PackageScope static boolean contains(Throwable e, String s) {
42-
for (var cause = e; cause = cause.cause; cause !== null) {
42+
for (var cause = e; cause !== null; cause = cause.cause) {
4343
if (cause.message.containsIgnoreCase(s)) return true
4444
}
4545

0 commit comments

Comments
 (0)