fix logic error in legacy

This commit is contained in:
Matthew Messinger 2018-07-22 16:52:06 -04:00
parent 5b837150aa
commit ea3971dd50

View file

@ -99,7 +99,7 @@ public class LegacySkinServer implements SkinServer {
if (response.startsWith("ERROR: ")) {
response = response.substring(7);
}
if (response.equalsIgnoreCase("OK") || !response.endsWith("OK"))
if (!response.equalsIgnoreCase("OK") || !response.endsWith("OK"))
throw new IOException(response);
return new SkinUploadResponse(response);