mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2025-01-25 00:01:21 +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();
|
||||
}
|
||||
|
||||
if (scanner != null)
|
||||
if (scanner != null) {
|
||||
scanner.close();
|
||||
}
|
||||
|
||||
return lastLine.isEmpty();
|
||||
} catch (FileNotFoundException e) {
|
||||
e.printStackTrace();
|
||||
|
@ -47,12 +47,8 @@ public class ErrorMessageSender implements Listener {
|
||||
case NOT_ENOUGH_MONEY:
|
||||
message = Messages.NOT_ENOUGH_MONEY;
|
||||
break;
|
||||
case OTHER:
|
||||
default:
|
||||
break;
|
||||
case SHOP_CREATED_SUCCESSFULLY:
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if (message != null) {
|
||||
|
@ -73,16 +73,8 @@ public class ErrorMessageSender implements Listener {
|
||||
case INVALID_SHOP:
|
||||
message = Messages.INVALID_SHOP_DETECTED;
|
||||
break;
|
||||
case CREATIVE_MODE_PROTECTION:
|
||||
default:
|
||||
break;
|
||||
case OTHER:
|
||||
break;
|
||||
case SPAM_CLICKING_PROTECTION:
|
||||
break;
|
||||
case TRANSACTION_SUCCESFUL:
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if (message != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user