Skip to content

Commit f4bd9d2

Browse files
committed
fix unconvert linter
Signed-off-by: Tim Ramlot <[email protected]>
1 parent f81a051 commit f4bd9d2

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.golangci.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ linters:
1717
- nilerr
1818
- noctx
1919
- predeclared
20-
- unconvert
2120
- unparam
2221
- usestdlibvars
2322
text: .*

api/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ func (t Time) MarshalJSON() ([]byte, error) {
2626
if err != nil {
2727
return nil, err
2828
}
29-
return []byte(jsonStr), nil
29+
return jsonStr, nil
3030
}

0 commit comments

Comments
 (0)