Skip to content

Commit 4b04d0a

Browse files
Apply suggestions from code review
Co-authored-by: Copilot <[email protected]>
1 parent 2f0ffae commit 4b04d0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared/management/client/grpc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,8 @@ func newLoginBackoff(ctx context.Context) backoff.BackOff {
348348
}, ctx)
349349
}
350350

351-
// isRegistrationRequest determines if a login request is actually a registration
352-
// by checking for the presence of setup key or JWT token
351+
// isRegistrationRequest determines if a login request is actually a registration.
352+
// Returns true if either the setup key or the JWT token is present in the request.
353353
func isRegistrationRequest(req *proto.LoginRequest) bool {
354354
return req.SetupKey != "" || req.JwtToken != ""
355355
}

0 commit comments

Comments
 (0)