Skip to content

Commit

Permalink
refactor: removed unneeded pragmas
Browse files Browse the repository at this point in the history
FossilOrigin-Name: cbbc570345666acbe6ff795fdea536f1c3e543e615b6799a40699617763f7d40
  • Loading branch information
thindil committed Mar 19, 2024
1 parent 021c2b0 commit a2307a8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/rules/haspragma.nim
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ checkRule:
if rule.options[0].toLowerAscii != "unborrowed" or "borrow" notin strPragmas:
# Check the node for each selected pragma
for pragma in rule.options[1 .. ^1]:
{.ruleOff: "ifstatements".}
if pragma[^1] == '*' and pragma[0] != '*':
var hasPragma: bool = false
for procPragma in strPragmas:
Expand Down Expand Up @@ -243,7 +242,6 @@ checkRule:
negativeMessage = negativeMessage, node = node,
ruleData = pragma, params = [
procName, $node.info.line, pragma])
{.ruleOn: "ifstatements".}
endCheck:
if not rule.enabled and rule.amount == 0:
rule.amount = 1
Expand Down

0 comments on commit a2307a8

Please sign in to comment.