From 7baa01527f2ca24bc2f2de030ad4ab46d1052ae0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 25 Sep 2022 22:43:26 +0200 Subject: [PATCH] Please cherry-pick: - no need for local variable "isAjax" --- src/java/org/mxchange/jjobs/filter/JobsNoCacheFilter.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/java/org/mxchange/jjobs/filter/JobsNoCacheFilter.java b/src/java/org/mxchange/jjobs/filter/JobsNoCacheFilter.java index df5acb2a..b42f947a 100644 --- a/src/java/org/mxchange/jjobs/filter/JobsNoCacheFilter.java +++ b/src/java/org/mxchange/jjobs/filter/JobsNoCacheFilter.java @@ -58,11 +58,8 @@ public class JobsNoCacheFilter implements Filter { res.setHeader("Pragma", "no-cache"); // //NOI18N res.setDateHeader("Expires", 0); // //NOI18N - // Is AJAX given? - final Boolean isAjax = "true".equals(req.getParameter("javax.faces.partial.ajax")); //NOI18N - // Is AJAX? - if (isAjax) { + if ("true".equals(req.getParameter("javax.faces.partial.ajax"))) { // Set Accept header res.setHeader("Accept", "text/xml"); //NOI18N } -- 2.39.5