Skip to content

Commit

Permalink
remove unnecessary ifs
Browse files Browse the repository at this point in the history
  • Loading branch information
mkisielewski-arista committed Oct 30, 2024
1 parent e74522e commit 663aa9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
7 changes: 1 addition & 6 deletions cmd/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,7 @@ var buildCmd = &cobra.Command{
extraMockArgs := impl.MockExtraCmdlineArgs{
NoCheck: noCheck,
}

if err := impl.Build(repo, pkg, defaultArch(),
extraCreateSrpmArgs, extraMockArgs); err != nil {
return err
}
return nil
return impl.Build(repo, pkg, defaultArch(), extraCreateSrpmArgs, extraMockArgs)
},
}

Expand Down
5 changes: 1 addition & 4 deletions cmd/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ var mockCmd = &cobra.Command{
NoCheck: noCheck,
OnlyCreateCfg: onlyCreateCfg,
}
if err := impl.Mock(repo, pkg, target, extraArgs); err != nil {
return err
}
return nil
return impl.Mock(repo, pkg, target, extraArgs)
},
}

Expand Down

0 comments on commit 663aa9c

Please sign in to comment.