Skip to content

Commit

Permalink
refactor: small code cleanup
Browse files Browse the repository at this point in the history
FossilOrigin-Name: 1c7ae5f0c17d7a57e4624171c4e6ec378cfd6e220071387f3f1ac67f9b815326
  • Loading branch information
thindil committed Mar 15, 2024
1 parent d894313 commit bea082d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/haspragma.nim
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ checkRule:
for pragma in pragmas:
try:
strPragmas.add(y = $pragma)
except KeyError, Exception:
except:
discard
if rule.options[0].toLowerAscii != "unborrowed" or "borrow" notin strPragmas:
# Check the node for each selected pragma
Expand Down

0 comments on commit bea082d

Please sign in to comment.