Skip to content

Commit

Permalink
NOVER-5: undo an empty check removal
Browse files Browse the repository at this point in the history
  • Loading branch information
cbarik-infoblox committed Feb 5, 2024
1 parent 1307d9b commit 987248f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/claim/claim.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ func NullClaimsVerifier([]string, []string) (string, []error) {
func UnverifiedClaimFromBearers(bearer, newBearer []string) (string, []error) {
_, validBearer, bearerErrorList := atlas_claims.ParseUnverifiedClaimsFromJwtStringsRaw(bearer)
_, validNewBearer, newBearerErrorList := atlas_claims.ParseUnverifiedClaimsFromJwtStringsRaw(newBearer)
if len(newBearerErrorList) > 0 || len(bearerErrorList) > 0 {
//TODO:fishy Should not have multiple newBearers
}
// Take the new bearer if possible.
if len(validNewBearer) > 0 {
return validNewBearer, nil
Expand Down

0 comments on commit 987248f

Please sign in to comment.