Skip to content

Commit

Permalink
nolint at more places
Browse files Browse the repository at this point in the history
  • Loading branch information
youyuanwu committed Feb 5, 2022
1 parent 0a1e312 commit 000d382
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions format.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ type defaultFormats struct {

// NewFormats creates a new formats registry seeded with the values from the default
func NewFormats() Registry {
//nolint:forcetypeassert
return NewSeededFormats(Default.(*defaultFormats).data, nil)
}

Expand Down
1 change: 1 addition & 0 deletions time_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ func TestDateTime_Equal(t *testing.T) {
dt1 := DateTime(time.Now())
dt2 := DateTime(time.Time(dt1).Add(time.Second))

//nolint:gocritic
assert.True(t, dt1.Equal(dt1), "DateTime instances should be equal")
assert.False(t, dt1.Equal(dt2), "DateTime instances should not be equal")
}

0 comments on commit 000d382

Please sign in to comment.