From e7de87b81832ed8b25ab7663df3202bc4615b00e Mon Sep 17 00:00:00 2001 From: Suyash Garg Date: Fri, 9 Aug 2019 11:59:45 +0200 Subject: [PATCH] Fix mistake of not checking at all --- .../org/zalando/nakadi/service/AuthorizationValidator.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main/java/org/zalando/nakadi/service/AuthorizationValidator.java b/src/main/java/org/zalando/nakadi/service/AuthorizationValidator.java index f24c1296df..032218f027 100644 --- a/src/main/java/org/zalando/nakadi/service/AuthorizationValidator.java +++ b/src/main/java/org/zalando/nakadi/service/AuthorizationValidator.java @@ -221,11 +221,6 @@ public void validateAuthorization(final Resource oldValue, final Resource newVal throw new UnableProcessException( "Changing authorization object to `null` is not possible due to existing one"); } - - if (oldAuth != null) { - return; - } - validateAuthorization(newValue); } }