Skip to content

Commit

Permalink
fix: linter unused errors
Browse files Browse the repository at this point in the history
Signed-off-by: Xeckt <jordansavell1198@gmail.com>
  • Loading branch information
Xeckt committed Jun 25, 2024
1 parent 23f0e82 commit 59c43b0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sztp-agent/cmd/disable.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func Disable() *cobra.Command {
cmd := &cobra.Command{
Use: "disable",
Short: "Run the disable command",
RunE: func(c *cobra.Command, _ []string) error {
RunE: func(_ *cobra.Command, _ []string) error {
a := secureagent.NewAgent(bootstrapURL, serialNumber, dhcpLeaseFile, devicePassword, devicePrivateKey, deviceEndEntityCert, bootstrapTrustAnchorCert)
return a.RunCommandDisable()
},
Expand Down
2 changes: 1 addition & 1 deletion sztp-agent/cmd/enable.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func Enable() *cobra.Command {
cmd := &cobra.Command{
Use: "enable",
Short: "Run the enable command",
RunE: func(c *cobra.Command, _ []string) error {
RunE: func(_ *cobra.Command, _ []string) error {
a := secureagent.NewAgent(bootstrapURL, serialNumber, dhcpLeaseFile, devicePassword, devicePrivateKey, deviceEndEntityCert, bootstrapTrustAnchorCert)
return a.RunCommandEnable()
},
Expand Down
2 changes: 1 addition & 1 deletion sztp-agent/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func Run() *cobra.Command {
cmd := &cobra.Command{
Use: "run",
Short: "Exec the run command",
RunE: func(c *cobra.Command, _ []string) error {
RunE: func(_ *cobra.Command, _ []string) error {
a := secureagent.NewAgent(bootstrapURL, serialNumber, dhcpLeaseFile, devicePassword, devicePrivateKey, deviceEndEntityCert, bootstrapTrustAnchorCert)
return a.RunCommand()
},
Expand Down
2 changes: 1 addition & 1 deletion sztp-agent/cmd/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func Status() *cobra.Command {
cmd := &cobra.Command{
Use: "status",
Short: "Run the status command",
RunE: func(c *cobra.Command, _ []string) error {
RunE: func(_ *cobra.Command, _ []string) error {
a := secureagent.NewAgent(bootstrapURL, serialNumber, dhcpLeaseFile, devicePassword, devicePrivateKey, deviceEndEntityCert, bootstrapTrustAnchorCert)
return a.RunCommandStatus()
},
Expand Down

0 comments on commit 59c43b0

Please sign in to comment.