Skip to content

Commit

Permalink
forgot two println
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettMayson committed Oct 19, 2024
1 parent b897ad3 commit 309b0de
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions libs/sqf/src/analyze/lints/s23_reassign_reserved_variable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,12 @@ impl LintRunner<SqfLintData> for Runner {

for statement in target.content() {
let (Statement::AssignGlobal(var, exp, span) | Statement::AssignLocal(var, exp, span)) = statement else {
println!("Not AssignGlobal or AssignLocal, dropping just_saved");
just_saved.take();
continue
};

if let Some((saved, original, saved_span)) = just_saved.as_ref() {
if saved == var {
println!("Saved is the same as var, dropping just_saved");
need_to_restore.insert(original.to_string(), (saved.to_string(), span.clone(), saved_span.clone()));
just_saved.take();
continue
Expand Down

0 comments on commit 309b0de

Please sign in to comment.