Skip to content

Commit 3839dbc

Browse files
committed
better skimmable
1 parent 79bc524 commit 3839dbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/formatter/formatter.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ func SetFormatter(fmter format.Interface) {
1616
}
1717

1818
func Formatter() format.Interface {
19-
fmter, ok := formatter.Load().(format.Interface)
20-
if ok {
19+
fmter, isInterface := formatter.Load().(format.Interface)
20+
if isInterface {
2121
return fmter
2222
}
2323
return nil

0 commit comments

Comments
 (0)