From ac4a711b28074ee03f9fdd1895808aeaf3cf415d Mon Sep 17 00:00:00 2001 From: gjoranv Date: Mon, 9 Dec 2024 15:51:50 +0100 Subject: [PATCH] Bugfix: add forgotten return statement --- .../src/main/java/ai/vespa/secret/model/SecretVersionState.java | 1 + 1 file changed, 1 insertion(+) diff --git a/container-disc/src/main/java/ai/vespa/secret/model/SecretVersionState.java b/container-disc/src/main/java/ai/vespa/secret/model/SecretVersionState.java index 135b353f8c7c..226c8ed24526 100644 --- a/container-disc/src/main/java/ai/vespa/secret/model/SecretVersionState.java +++ b/container-disc/src/main/java/ai/vespa/secret/model/SecretVersionState.java @@ -50,6 +50,7 @@ public static SecretVersionState deserialize(String serializedName) { public void validateTransition(SecretVersionState newState) { if (this == newState) { log.fine("Transition to the same state: " + newState); + return; } if (this == PREVIOUS && newState != DEPRECATED) { throw new IllegalArgumentException("Cannot transition from PREVIOUS state to " + newState);