Maybe it's bad to return

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
sigonasr2 2 years ago
parent 05a0e59e26
commit 1b946b4880
  1. 2
      sigServer.java

@ -147,14 +147,12 @@ public class sigServer {
if (!wroteData) {
System.out.println("Upload failed!");
CreateRequest(client,"400","Bad Request",Paths.get(sigPlace.OUTDIR,"testfile.html"));
return;
} else {
System.out.println("Saving upload to "+myFile);
if (filename.contains(".png")) {
CreateRequest(client,"200","OK",Paths.get(sigPlace.OUTDIR,"testfile.html"));
ArcadeReader.submitToDatabase(Paths.get(sigPlace.ARCADEDIR,filename));
System.out.println("Submitted to the database!");
return;
}
}
filename=null;

Loading…
Cancel
Save