Skip to content

Commit

Permalink
utils: fix sqf case util when code doesn't end with whitespace (#757)
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror authored Sep 2, 2024
1 parent abe7c87 commit d7c92a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/src/utils/sqf/case.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ fn file(file: &Path) -> Result<bool, Error> {
}
}
}
// flush buffer if we ended on non-whitepsace
check_buffer(&mut out, &mut buffer, &wiki);

// Write the file
if content != out {
Expand Down

0 comments on commit d7c92a5

Please sign in to comment.