From 86844c64a1c3b3c51f4b5d54334c757947b527d9 Mon Sep 17 00:00:00 2001 From: veliymolfar Date: Thu, 16 Jan 2020 10:32:56 +0200 Subject: [PATCH] refactor --- OsmAnd/src/net/osmand/plus/voice/JSCommandBuilder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/voice/JSCommandBuilder.java b/OsmAnd/src/net/osmand/plus/voice/JSCommandBuilder.java index bbc705943a..057ba29a32 100644 --- a/OsmAnd/src/net/osmand/plus/voice/JSCommandBuilder.java +++ b/OsmAnd/src/net/osmand/plus/voice/JSCommandBuilder.java @@ -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)); }