From 5304e84c6cb4a11247f4dc119bdf1c0d2e3de850 Mon Sep 17 00:00:00 2001 From: fdai7430 Date: Mon, 16 Jan 2023 10:59:32 +0100 Subject: [PATCH] refactoring: compressed return of getUseMessage() --- src/main/java/org/bitbiome/commands/UseCommand.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/bitbiome/commands/UseCommand.java b/src/main/java/org/bitbiome/commands/UseCommand.java index 041d4e4..59f951f 100644 --- a/src/main/java/org/bitbiome/commands/UseCommand.java +++ b/src/main/java/org/bitbiome/commands/UseCommand.java @@ -10,8 +10,7 @@ public class UseCommand implements CommandAPI { private String getUseMessage(String msg) { String message[] = msg.split(" on "); - String returnString = useItem(message[0], message[1]); - return returnString; + return useItem(message[0], message[1]); } private String useItem(String item, String target) {