Skip to content

Commit

Permalink
Changes error assertions to NoError
Browse files Browse the repository at this point in the history
  • Loading branch information
tdstein committed Sep 7, 2023
1 parent 6be8d6e commit 5be263e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/bundles/gitignore/gitignore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ func (s *GitIgnoreSuite) TestMatch() {

// Match returns nil if no match
m, err := ign.Match("app.py")
s.Nil(err)
s.NoError(err)
s.Nil(m)

// File matches include file info
m, err = ign.Match(".Rhistory")
s.Nil(err)
s.NoError(err)
s.NotNil(m)
s.Equal(MatchSourceFile, m.Source)
s.Equal(".Rhistory", m.Pattern)
Expand All @@ -72,7 +72,7 @@ func (s *GitIgnoreSuite) TestMatch() {

// Non-file matches don't include file info
m, err = ign.Match("app.py.bak")
s.Nil(err)
s.NoError(err)
s.NotNil(m)
s.Equal(MatchSourceUser, m.Source)
s.Equal("*.bak", m.Pattern)
Expand All @@ -86,7 +86,7 @@ func (s *GitIgnoreSuite) TestMatch() {
s.NoError(err)

m, err = ign.Match(ignoredir.Path())
s.Nil(err)
s.NoError(err)
s.NotNil(m)
s.Equal(MatchSourceUser, m.Source)
s.Equal("ignoredir/", m.Pattern)
Expand Down

0 comments on commit 5be263e

Please sign in to comment.