summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2020-09-25 16:23:01 +0200
committerSimon Rettberg2020-09-25 16:31:27 +0200
commit1e813cfe03f5035f3c9b842090a5377f6c9d4a05 (patch)
tree4d5431c41205e13c8c284a4dcde1a6421aa3d7c5
parent[server] RPC: Add "scan for orphaned files" function (diff)
downloadtutor-module-1e813cfe03f5035f3c9b842090a5377f6c9d4a05.tar.gz
tutor-module-1e813cfe03f5035f3c9b842090a5377f6c9d4a05.tar.xz
tutor-module-1e813cfe03f5035f3c9b842090a5377f6c9d4a05.zip
[server] Formatting
-rw-r--r--dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/web/WebRpc.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/web/WebRpc.java b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/web/WebRpc.java
index 888367fb..2709e567 100644
--- a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/web/WebRpc.java
+++ b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/web/WebRpc.java
@@ -180,7 +180,8 @@ public class WebRpc {
StringBuilder res = DeleteOldImages.hardDeleteImages();
if (res == null)
return WebServer.internalServerError();
- return new NanoHTTPD.Response(NanoHTTPD.Response.Status.OK, "text/plain; charset=utf-8", res.toString());
+ return new NanoHTTPD.Response(NanoHTTPD.Response.Status.OK, "text/plain; charset=utf-8",
+ res.toString());
}
/**
@@ -224,11 +225,9 @@ public class WebRpc {
}
smtpc = null;
}
-
boolean ret = false;
- if (smtpc != null) {
-
+ if (smtpc != null) {
MailTemplate template = DbConfiguration.getMailTemplate(Template.TEST_MAIL);
Map<String, String> templateArgs = new HashMap<>();
templateArgs.put("host", host);
@@ -241,8 +240,8 @@ public class WebRpc {
ret = smtpc.send(recipient, "bwLehrpool Mail Test", msg, "<sat.bwlehrpool.de>");
}
try {
- baos.write(("\n\n-----------------------------------------\nTestergebnis: " + (ret ? "" : "nicht ")
- + "erfolgreich").getBytes(StandardCharsets.UTF_8));
+ baos.write(("\n\n-----------------------------------------\nTestergebnis: "
+ + (ret ? "" : "nicht ") + "erfolgreich").getBytes(StandardCharsets.UTF_8));
} catch (IOException e) {
}
return new NanoHTTPD.Response(NanoHTTPD.Response.Status.OK, "text/plain; charset=utf-8",