diff options
author | Peter Wu <peter@lekensteyn.nl> | 2014-06-04 16:16:41 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2014-06-04 16:16:41 +0200 |
commit | 6ed880b928ceaee3935562c2eb975ddaa49a8530 (patch) | |
tree | 391a20427ca47e2952ff115aeeba5e69ea764de3 /src/main/FarmShell.java | |
parent | 554f33b510656d5de46eecd5fef11f237fd38043 (diff) | |
download | Goldfarmer-6ed880b928ceaee3935562c2eb975ddaa49a8530.tar.gz |
Formatting, remove unused imports
Diffstat (limited to 'src/main/FarmShell.java')
-rw-r--r-- | src/main/FarmShell.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/main/FarmShell.java b/src/main/FarmShell.java index 9e47a74..766e652 100644 --- a/src/main/FarmShell.java +++ b/src/main/FarmShell.java @@ -147,26 +147,26 @@ public class FarmShell { getAnalyzor().newsSpread(params[0]); break; case getBrands: - String trimmed = params[0].trim(); + String trimmed = params[0].trim(); String bool = trimmed; String query = null; - + int index = trimmed.indexOf(" "); - + if (index > -1) { - bool = trimmed.substring(0, index); + bool = trimmed.substring(0, index); query = trimmed.substring(index + 1, trimmed.length()); } - + boolean reset = false; if (bool.equals("true")) { reset = true; - } else if (bool.equals("false")){ + } else if (bool.equals("false")) { reset = false; } else { throw new IllegalArgumentException("getBrands: expected boolean, got " + params[0]); } - + if (query != null) { getAnalyzor().getBrands(query, reset); } else { |