refactoring

This commit is contained in:
rusefi 2021-07-09 00:28:03 -04:00
parent c9a082ea03
commit 8cde88aa31
1 changed files with 4 additions and 4 deletions

View File

@ -95,8 +95,8 @@ public class VariableRegistry {
return line; return line;
} }
public void register(String var, String value) { public void register(String var, String param) {
value = doRegister(var, value); String value = doRegister(var, param);
if (value == null) if (value == null)
return; return;
tryToRegisterAsInteger(var, value); tryToRegisterAsInteger(var, value);
@ -171,7 +171,7 @@ public class VariableRegistry {
} }
} }
private boolean isQuoted(String value, char quote) { private static boolean isQuoted(String value, char quote) {
if (value == null) if (value == null)
return false; return false;
value = value.trim(); value = value.trim();
@ -180,7 +180,7 @@ public class VariableRegistry {
return isQ(value, quote); return isQ(value, quote);
} }
private boolean isQ(String value, char quote) { private static boolean isQ(String value, char quote) {
return value.charAt(0) == quote && value.charAt(value.length() - 1) == quote; return value.charAt(0) == quote && value.charAt(value.length() - 1) == quote;
} }