mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2025-01-26 08:31:20 +01:00
Style fix, removed useless cases
This commit is contained in:
parent
8c49bfdbf4
commit
690af050e1
@ -79,8 +79,10 @@ public class Configuration {
|
|||||||
lastLine = scanner.nextLine();
|
lastLine = scanner.nextLine();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (scanner != null)
|
if (scanner != null) {
|
||||||
scanner.close();
|
scanner.close();
|
||||||
|
}
|
||||||
|
|
||||||
return lastLine.isEmpty();
|
return lastLine.isEmpty();
|
||||||
} catch (FileNotFoundException e) {
|
} catch (FileNotFoundException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
@ -47,12 +47,8 @@ public class ErrorMessageSender implements Listener {
|
|||||||
case NOT_ENOUGH_MONEY:
|
case NOT_ENOUGH_MONEY:
|
||||||
message = Messages.NOT_ENOUGH_MONEY;
|
message = Messages.NOT_ENOUGH_MONEY;
|
||||||
break;
|
break;
|
||||||
case OTHER:
|
default:
|
||||||
break;
|
break;
|
||||||
case SHOP_CREATED_SUCCESSFULLY:
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (message != null) {
|
if (message != null) {
|
||||||
|
@ -73,16 +73,8 @@ public class ErrorMessageSender implements Listener {
|
|||||||
case INVALID_SHOP:
|
case INVALID_SHOP:
|
||||||
message = Messages.INVALID_SHOP_DETECTED;
|
message = Messages.INVALID_SHOP_DETECTED;
|
||||||
break;
|
break;
|
||||||
case CREATIVE_MODE_PROTECTION:
|
default:
|
||||||
break;
|
break;
|
||||||
case OTHER:
|
|
||||||
break;
|
|
||||||
case SPAM_CLICKING_PROTECTION:
|
|
||||||
break;
|
|
||||||
case TRANSACTION_SUCCESFUL:
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (message != null) {
|
if (message != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user