We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afba495 commit e047215Copy full SHA for e047215
1 file changed
backend/api/routes.go
@@ -28,10 +28,10 @@ func (u *UnixTime) UnmarshalJSON(b []byte) error {
28
return nil
29
}
30
func (u UnixTime) MarshalJSON() ([]byte, error) {
31
- if u.Time.IsZero() {
+ if u.Time.IsZero() { //nolint:all
32
return []byte("0"), nil
33
34
- return []byte(fmt.Sprintf("%d", u.Time.Unix())), nil
+ return []byte(fmt.Sprintf("%d", u.Time.Unix())), nil //nolint:all
35
36
37
type Shard struct {
0 commit comments