Skip to content

Commit 733f4c7

Browse files
committed
Revert "Exclude 'defer' context in 'if-inplace-func-incorrect-nil-err-return' semgrep rule."
This reverts commit 295febf.
1 parent 6012322 commit 733f4c7

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

.semgrep/rules/if-inplace-func-incorrect-nil-err-return.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,6 @@ rules:
4242
return $OTHERERR
4343
}
4444
45-
# exclude defer context
46-
- pattern-not-inside: |
47-
defer func (...) {
48-
...
49-
}(...)
50-
5145
# pattern-not for multiple return values
5246
- pattern-not: |
5347
if $ERR := $FUNC(...); $ERR != nil {

0 commit comments

Comments
 (0)