Skip to content

Commit

Permalink
improve readability with true compare statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Meier committed May 21, 2015
1 parent 637cc9f commit 2799804
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -56,18 +56,18 @@ protected boolean processRequestCycle(final RequestCycle requestCycle, final Web
{
res = true;
}
else if (!requestCycle.processRequestAndDetach() && !httpServletResponse.isCommitted())
else if (requestCycle.processRequestAndDetach() || httpServletResponse.isCommitted())
{
webResponse.flush();
}
else
{
if (chain != null)
{
chain.doFilter(httpServletRequest, httpServletResponse);
}
res = false;
}
else
{
webResponse.flush();
}

return res;
}
Expand Down

0 comments on commit 2799804

Please sign in to comment.