Skip to content

Commit 3d7b7ce

Browse files
committed
#0000 Review: Optimization and corrections
1 parent 1917a1d commit 3d7b7ce

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sources/com/seanox/devwex/Worker.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
* controlled, it is completely aborted.
6363
*
6464
* @author Seanox Software Solutions
65-
* @version 5.5.0 20220928
65+
* @version 5.5.0 20221003
6666
*/
6767
class Worker implements Runnable {
6868

@@ -175,9 +175,9 @@ class Worker implements Runnable {
175175
*/
176176
private static String cleanOptions(String string) {
177177
int cursor = string.indexOf('[');
178-
if (cursor >= 0)
179-
string = string.substring(0, cursor).trim();
180-
return string;
178+
if (cursor < 0)
179+
return string;
180+
return string.substring(0, cursor).trim();
181181
}
182182

183183
/**

0 commit comments

Comments
 (0)