Skip to content

Commit

Permalink
lint err fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shireenf-ibm committed Aug 13, 2023
1 parent aa2bbfd commit 2e7e2f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions roxctl/netpol/connectivity/diff/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ For more information about the support scope of Red Hat Technology Preview featu
Args: cobra.ExactArgs(0),
RunE: func(c *cobra.Command, args []string) error {
diffNetpolCmd.env.Logger().WarnfLn("This is a Technology Preview feature. Red Hat does not recommend using Technology Preview features in production.")
analyzer, err := diffNetpolCmd.construct(args)
analyzer, err := diffNetpolCmd.construct()
if err != nil {
return err
}
Expand All @@ -66,7 +66,7 @@ For more information about the support scope of Red Hat Technology Preview featu
return c
}

func (cmd *diffNetpolCommand) construct(args []string) (diffAnalyzer, error) {
func (cmd *diffNetpolCommand) construct() (diffAnalyzer, error) {
var opts []npguard.DiffAnalyzerOption
if cmd.env != nil && cmd.env.Logger() != nil {
opts = append(opts, npguard.WithLogger(npg.NewLogger(cmd.env.Logger())))
Expand Down
2 changes: 1 addition & 1 deletion roxctl/netpol/connectivity/diff/netpol_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func (d *diffAnalyzeNetpolTestSuite) TestDiffAnalyzeNetpol() {
env: env,
}

analyzer, err := diffNetpolCmd.construct([]string{})
analyzer, err := diffNetpolCmd.construct()
d.Assert().NoError(err)

err = diffNetpolCmd.validate()
Expand Down

0 comments on commit 2e7e2f5

Please sign in to comment.