refactor
This commit is contained in:
parent
be31b2b2fd
commit
86844c64a1
1 changed files with 2 additions and 2 deletions
|
@ -65,7 +65,7 @@ public class JSCommandBuilder extends CommandBuilder {
|
|||
return this;
|
||||
}
|
||||
|
||||
private boolean isCommandExist(String name) {
|
||||
private boolean isJSCommandExists(String name) {
|
||||
return jsScope.get(name) instanceof Function;
|
||||
}
|
||||
|
||||
|
@ -124,7 +124,7 @@ public class JSCommandBuilder extends CommandBuilder {
|
|||
}
|
||||
|
||||
public JSCommandBuilder takeExit(String turnType, double dist, int exit, StreetName streetName) {
|
||||
return isCommandExist(C_TAKE_EXIT) ?
|
||||
return isJSCommandExists(C_TAKE_EXIT) ?
|
||||
addCommand(C_TAKE_EXIT, turnType, dist, exit, convertStreetName(streetName)) :
|
||||
addCommand(C_TURN, turnType, dist, convertStreetName(streetName));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue