Skip to content

Commit

Permalink
fix: messed up merge
Browse files Browse the repository at this point in the history
Signed-off-by: Xeckt <[email protected]>
  • Loading branch information
Xeckt committed Jun 26, 2024
1 parent 3cdf7d4 commit 3819622
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 17 deletions.
4 changes: 1 addition & 3 deletions sztp-agent/cmd/daemon_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ func TestDaemonCommand(t *testing.T) {
want: &cobra.Command{
Use: "daemon",
Short: "Run the daemon command",
RunE: func(c *cobra.Command, _ []string) error {
err := c.Help()
cobra.CheckErr(err)
RunE: func(_ *cobra.Command, _ []string) error {
return nil
},
},
Expand Down
4 changes: 1 addition & 3 deletions sztp-agent/cmd/disable_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ func TestDisableCommand(t *testing.T) {
want: &cobra.Command{
Use: "disable",
Short: "Run the disable command",
RunE: func(c *cobra.Command, _ []string) error {
err := c.Help()
cobra.CheckErr(err)
RunE: func(_ *cobra.Command, _ []string) error {
return nil
},
},
Expand Down
4 changes: 1 addition & 3 deletions sztp-agent/cmd/enable_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ func TestEnableCommand(t *testing.T) {
want: &cobra.Command{
Use: "enable",
Short: "Run the enable command",
RunE: func(c *cobra.Command, _ []string) error {
err := c.Help()
cobra.CheckErr(err)
RunE: func(_ *cobra.Command, _ []string) error {
return nil
},
},
Expand Down
2 changes: 0 additions & 2 deletions sztp-agent/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ func Run() *cobra.Command {
return fmt.Errorf("must not be folder: %q", filePath)
}
}
err := c.Help()
cobra.CheckErr(err)
a := secureagent.NewAgent(bootstrapURL, serialNumber, dhcpLeaseFile, devicePassword, devicePrivateKey, deviceEndEntityCert, bootstrapTrustAnchorCert)
return a.RunCommand()
},
Expand Down
4 changes: 1 addition & 3 deletions sztp-agent/cmd/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ func TestRunCommand(t *testing.T) {
want: &cobra.Command{
Use: "run",
Short: "Exec the run command",
RunE: func(c *cobra.Command, _ []string) error {
err := c.Help()
cobra.CheckErr(err)
RunE: func(_ *cobra.Command, _ []string) error {
return nil
},
},
Expand Down
4 changes: 1 addition & 3 deletions sztp-agent/cmd/status_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ func TestStatusCommand(t *testing.T) {
want: &cobra.Command{
Use: "status",
Short: "Run the status command",
RunE: func(c *cobra.Command, _ []string) error {
err := c.Help()
cobra.CheckErr(err)
RunE: func(_ *cobra.Command, _ []string) error {
return nil
},
},
Expand Down

0 comments on commit 3819622

Please sign in to comment.