Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
unknwon authored Nov 30, 2021
1 parent 38cfa9c commit 94a5bcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,11 @@ func TestFile_HasSection(t *testing.T) {
require.NotNil(t, f)

sec := f.HasSection("author")
assert.Equal(t, true, sec)
assert.True(t, sec)

t.Run("section not exists", func(t *testing.T) {
nonexistent := f.HasSection("404")
assert.Equal(t, false, nonexistent)
assert.False(t, nonexistent)
})
}

Expand Down

0 comments on commit 94a5bcc

Please sign in to comment.