Skip to content

Commit

Permalink
Merge pull request #50 from sashamelentyev/fix/check-status-code-in-i…
Browse files Browse the repository at this point in the history
…fstmt

fix: add lookup flag in check status code case
  • Loading branch information
sashamelentyev authored Aug 15, 2022
2 parents 40aae56 + 0574a6c commit 9d8531d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/analyzer/analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@ func run(pass *analysis.Pass) (interface{}, error) {
return
}

if !lookupFlag(pass, HTTPStatusCodeFlag) {
return
}

checkHTTPStatusCode(pass, basicLit)
}
})
Expand Down

0 comments on commit 9d8531d

Please sign in to comment.