From 3c0a09624ec507f0b9a25d87bbed6a583034028d Mon Sep 17 00:00:00 2001 From: Markus Gylling Date: Thu, 1 Sep 2022 18:48:17 +0200 Subject: [PATCH] clean up prooftype getter --- .../src/main/java/org/oneedtech/inspect/vc/Credential.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/inspector-vc/src/main/java/org/oneedtech/inspect/vc/Credential.java b/inspector-vc/src/main/java/org/oneedtech/inspect/vc/Credential.java index e168988..c19f703 100644 --- a/inspector-vc/src/main/java/org/oneedtech/inspect/vc/Credential.java +++ b/inspector-vc/src/main/java/org/oneedtech/inspect/vc/Credential.java @@ -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; }