From 5be263e7e7e8a14f75f6b602e7bf252c22ac90a8 Mon Sep 17 00:00:00 2001 From: tdstein Date: Thu, 7 Sep 2023 13:03:34 -0400 Subject: [PATCH] Changes error assertions to NoError --- internal/bundles/gitignore/gitignore_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/bundles/gitignore/gitignore_test.go b/internal/bundles/gitignore/gitignore_test.go index 9e8a212d8..9463a0f3a 100644 --- a/internal/bundles/gitignore/gitignore_test.go +++ b/internal/bundles/gitignore/gitignore_test.go @@ -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) @@ -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) @@ -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)