Skip to content

Commit

Permalink
still nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
burner committed Sep 5, 2023
1 parent f364c55 commit 7970cbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dscanner/analysis/always_curly.d
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ unittest
}, sac);

assertAutoFix(q{
if(true) return;
if(true) return; // fix: if must be follow by a BlockStatement aka. { }
}c, q{
if(true) { return; }
if(true) { return; } // fix: if must be follow by a BlockStatement aka. { }
}c, sac);

stderr.writeln("Unittest for AlwaysCurly passed.");
Expand Down

0 comments on commit 7970cbf

Please sign in to comment.