From 2cf58f1b5b0293c5d93b7b0e70fadd3a29ed2454 Mon Sep 17 00:00:00 2001 From: T00thpick1 Date: Thu, 16 May 2013 18:04:14 -0400 Subject: [PATCH] Why break when we can return? --- .../java/com/gmail/nossr50/database/SQLDatabaseManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java b/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java index f4fb5be14..b59fd9fdd 100644 --- a/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java +++ b/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java @@ -564,7 +564,7 @@ public final class SQLDatabaseManager { + "ADD INDEX `idx_acrobatics` (`acrobatics`) USING BTREE, " + "ADD INDEX `idx_fishing` (`fishing`) USING BTREE;"); } - break; + return; case MOB_HEALTHBARS: sql = "SELECT * FROM `" + tablePrefix + "huds` ORDER BY `" + tablePrefix + "huds`.`mobhealthbar` ASC LIMIT 0 , 30"; @@ -572,7 +572,7 @@ public final class SQLDatabaseManager { case PARTY_NAMES: write("ALTER TABLE `" + tablePrefix + "users` DROP COLUMN `party` ;"); - break; + return; case KILL_ORPHANS: mcMMO.p.getLogger().info("Killing orphans"); @@ -600,7 +600,7 @@ public final class SQLDatabaseManager { tablePrefix + "users u WHERE " + tablePrefix + "skills.user_id = u.id);" ); - break; + return; default: break;