Merge pull request #4173 from LinuxSuRen/code-format

Format the mess codes
This commit is contained in:
Oleg Nenashev authored and GitHub committed 2019-08-30 22:19:28 +02:00
commit 2d87dbb8c8
1 file changed
+4 -4
@@ -436,10 +436,10 @@ public class UpdateCenter extends AbstractModelObject implements Saveable, OnMas
@Restricted(DoNotUse.class) // WebOnly
public HttpResponse doIncompleteInstallStatus() {
try {
Map<String,String> jobs = InstallUtil.getPersistedInstallStatus();
if(jobs == null) {
jobs = Collections.emptyMap();
}
Map<String,String> jobs = InstallUtil.getPersistedInstallStatus();
if(jobs == null) {
jobs = Collections.emptyMap();
}
return HttpResponses.okJSON(jobs);
} catch (Exception e) {
return HttpResponses.errorJSON(String.format("ERROR: %s", e.getMessage()));