Skip to content

Commit 7f3bf07

Browse files
fix lint error
1 parent 6d116a2 commit 7f3bf07

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cns/restserver/internalapi_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -573,9 +573,7 @@ func TestSyncHostNCVersionNMAgentAPICallFailed(t *testing.T) {
573573
}, nil
574574
},
575575
SupportedAPIsF: func(_ context.Context) ([]string, error) {
576-
// NMAgent SupportedAPIs call fails
577-
var errNMAgentAPI = errors.New("failed to connect to NMAgent API endpoint")
578-
return nil, fmt.Errorf("%w", errNMAgentAPI)
576+
return nil, errors.New("failed to connect to NMAgent API endpoint")
579577
},
580578
}
581579
cleanup := setMockNMAgent(svc, mnma)

0 commit comments

Comments
 (0)