Skip to content

Commit af4e96e

Browse files
committed
fix-lint: format exitFuncChecker correctly
1 parent 0019be2 commit af4e96e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rule/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type exitFuncChecker func(args []ast.Expr) bool
1717
var alwaysTrue exitFuncChecker = func([]ast.Expr) bool { return true }
1818

1919
// exitFunctions is a map of std packages and functions that are considered as exit functions.
20-
var exitFunctions = map[string]map[string]exitFuncChecker {
20+
var exitFunctions = map[string]map[string]exitFuncChecker{
2121
"os": {"Exit": alwaysTrue},
2222
"syscall": {"Exit": alwaysTrue},
2323
"log": {

0 commit comments

Comments
 (0)