Skip to content

Commit

Permalink
removed unneeded check for local connection
Browse files Browse the repository at this point in the history
  • Loading branch information
dvayanu committed Mar 16, 2019
1 parent c8375c5 commit 4bb491c
Showing 1 changed file with 3 additions and 5 deletions.
Expand Up @@ -24,12 +24,10 @@ protected String getLinkToCurrentPage(HttpServletRequest req) {
@Override @Override
public ActionCommand execute(ActionMapping mapping, FormBean formBean, HttpServletRequest req, HttpServletResponse res) throws Exception { public ActionCommand execute(ActionMapping mapping, FormBean formBean, HttpServletRequest req, HttpServletResponse res) throws Exception {


if (!APILookupUtility.isLocal()) { MoskitoConfiguration config = getAdditionalFunctionalityAPI().getConfiguration();
MoskitoConfiguration config = getAdditionalFunctionalityAPI().getConfiguration(); KillSwitchConfiguration killSwitchConfiguration = config.getKillSwitch();
KillSwitchConfiguration killSwitchConfiguration = config.getKillSwitch();


req.setAttribute("killSwitchConfiguration", killSwitchConfiguration != null ? killSwitchConfiguration : new KillSwitchConfiguration()); req.setAttribute("killSwitchConfiguration", killSwitchConfiguration);
}
return mapping.success(); return mapping.success();
} }


Expand Down

0 comments on commit 4bb491c

Please sign in to comment.