Skip to content

Commit

Permalink
Add deprecation nolints
Browse files Browse the repository at this point in the history
  • Loading branch information
codingllama committed Oct 2, 2023
1 parent 2fedf32 commit b009aa6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/auth/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2889,6 +2889,7 @@ func TestDeleteMFADevice(t *testing.T) {
}
}

//nolint:staticcheck // SA1019. Kept for backward compatibility testing.
func deleteMFADeviceStream(ctx context.Context, userClient *Client, testDev *TestDevice) error {
stream, err := userClient.DeleteMFADevice(ctx)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions lib/auth/grpcserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -2518,6 +2518,7 @@ func deleteMFADeviceAuthChallenge(gctx *grpcContext, stream authpb.AuthService_D
if err != nil {
return trace.Wrap(err)
}
//nolint:staticcheck // SA1019. Kept for compatibility with older tsh versions.
if err := stream.Send(&authpb.DeleteMFADeviceResponse{
Response: &authpb.DeleteMFADeviceResponse_MFAChallenge{MFAChallenge: authChallenge},
}); err != nil {
Expand Down

0 comments on commit b009aa6

Please sign in to comment.