Skip to content

Commit c5ade9b

Browse files
refactor: rename ifstmt func
1 parent 9b01af9 commit c5ade9b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/analyzer/analyzer.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ func run(pass *analysis.Pass) (interface{}, error) {
142142
return
143143
}
144144

145-
ifstmt(pass, x, y)
145+
ifStmt(pass, x, y)
146146

147147
case *ast.SwitchStmt:
148148
selectorExpr, ok := n.Tag.(*ast.SelectorExpr)
@@ -204,7 +204,7 @@ func run(pass *analysis.Pass) (interface{}, error) {
204204
continue
205205
}
206206

207-
ifstmt(pass, x, y)
207+
ifStmt(pass, x, y)
208208
}
209209
}
210210
}
@@ -293,8 +293,8 @@ func funArgs(pass *analysis.Pass, x *ast.Ident, fun *ast.SelectorExpr, args []as
293293
}
294294
}
295295

296-
// ifstmt checks X and Y in if-statement.
297-
func ifstmt(pass *analysis.Pass, x *ast.SelectorExpr, y *ast.BasicLit) {
296+
// ifStmt checks X and Y in if-statement.
297+
func ifStmt(pass *analysis.Pass, x *ast.SelectorExpr, y *ast.BasicLit) {
298298
switch x.Sel.Name {
299299
case "StatusCode":
300300
if !lookupFlag(pass, HTTPStatusCodeFlag) {

0 commit comments

Comments
 (0)