Skip to content
Permalink
Browse files

remove warnings: 'Statement unnecessarily nested within else clause'

  • Loading branch information...
sgaebel
sgaebel committed Jan 10, 2019
1 parent eeae816 commit c2398fd890ca16fb821df00df05248d95056122f
@@ -56,9 +56,8 @@ public static serverObjects respond(final RequestHeader header, final serverObje
prop.put("errmsg", 1); // msg: activate diff lng
prop.put("transsize", 0);
return prop;
} else {
prop.put("errmsg", 0);
}
prop.put("errmsg", 0);

TranslationManager transMgr = new TranslationManager();
File locallangFile = transMgr.getScratchFile(new File(currentlang + ".lng"));
@@ -44,9 +44,8 @@ public static servletProperties respond(final RequestHeader requestHeader, final
if ("default".equals(langcfg) || "browser".equals(langcfg)) {
prop.put("errmsg", 1); // msg: activate diff lng
return prop;
} else {
prop.put("errmsg", 0);
}
prop.put("errmsg", 0);

final File localesFolder = sb.getAppPath("locale.source", "locales");
File lngfile = new File(localesFolder, langcfg + ".lng");

0 comments on commit c2398fd

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