Skip to content
Permalink
Browse files

removed unneeded check for local connection

  • Loading branch information...
dvayanu committed Mar 16, 2019
1 parent c8375c5 commit 4bb491c174cf6a49c2f1b5e222dd50ec9943f063
@@ -24,12 +24,10 @@ protected String getLinkToCurrentPage(HttpServletRequest req) {
@Override
public ActionCommand execute(ActionMapping mapping, FormBean formBean, HttpServletRequest req, HttpServletResponse res) throws Exception {

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

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

0 comments on commit 4bb491c

Please sign in to comment.
You can’t perform that action at this time.