Skip to content

Commit

Permalink
fix: lint issues
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed Apr 6, 2023
1 parent a67cf55 commit 5d25139
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions nfpm_test.go
Expand Up @@ -489,10 +489,10 @@ func TestOverrides(t *testing.T) {

type fakePackager struct{}

func (*fakePackager) ConventionalFileName(info *nfpm.Info) string {
func (*fakePackager) ConventionalFileName(_ *nfpm.Info) string {
return ""
}

func (*fakePackager) Package(info *nfpm.Info, w io.Writer) error {
func (*fakePackager) Package(_ *nfpm.Info, _ io.Writer) error {
return nil
}
6 changes: 1 addition & 5 deletions rpm/rpm.go
Expand Up @@ -137,11 +137,7 @@ func (*RPM) Package(info *nfpm.Info, w io.Writer) (err error) {
}
}

if err = rpm.Write(w); err != nil {
return err
}

return nil
return rpm.Write(w)
}

func addChangeLog(info *nfpm.Info, rpm *rpmpack.RPM) error {
Expand Down

0 comments on commit 5d25139

Please sign in to comment.