From 5268e587cb7c11db5c4c23dbd974ccdd69163ae6 Mon Sep 17 00:00:00 2001 From: Andrew Azores Date: Wed, 13 Sep 2023 15:07:54 -0400 Subject: [PATCH] remove redundant condition --- src/main/java/io/cryostat/agent/remote/RecordingsContext.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/cryostat/agent/remote/RecordingsContext.java b/src/main/java/io/cryostat/agent/remote/RecordingsContext.java index bfb45037..ef733f10 100644 --- a/src/main/java/io/cryostat/agent/remote/RecordingsContext.java +++ b/src/main/java/io/cryostat/agent/remote/RecordingsContext.java @@ -375,7 +375,7 @@ private boolean ensureMethodAccepted(HttpExchange exchange) throws IOException { if (!restricted) { return true; } - boolean passed = restricted && MutatingRemoteContext.apiWritesEnabled(config); + boolean passed = MutatingRemoteContext.apiWritesEnabled(config); if (!passed) { exchange.sendResponseHeaders(HttpStatus.SC_FORBIDDEN, BODY_LENGTH_NONE); }