Skip to content

Commit

Permalink
PowerShell: remove unnecessary if statements
Browse files Browse the repository at this point in the history
  • Loading branch information
kumarstack55 committed Sep 5, 2022
1 parent 0693966 commit c594496
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions parsers/powershell.c
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,7 @@ static bool parseFunction (tokenInfo *const token)
else
readNext = false;

if (nameFree)
deleteToken (nameFree);
deleteToken (nameFree);

return readNext;
}
Expand Down Expand Up @@ -558,8 +557,7 @@ static bool parseClass (tokenInfo *const token)
else
readNext = false;

if (nameFree)
deleteToken (nameFree);
deleteToken (nameFree);

return readNext;
}
Expand Down

0 comments on commit c594496

Please sign in to comment.