clean up prooftype getter

This commit is contained in:
Markus Gylling 2022-09-01 18:48:17 +02:00
parent e413bc1e68
commit 3c0a09624e

View File

@ -64,8 +64,7 @@ public class Credential extends GeneratedObject {
}
public ProofType getProofType() {
if(jwt == null) return ProofType.EMBEDDED;
return ProofType.EXTERNAL;
return jwt == null ? ProofType.EMBEDDED : ProofType.EXTERNAL;
}