summaryrefslogtreecommitdiffstats
path: root/app/api/Binding.qml
diff options
context:
space:
mode:
authorLi Xiaoming <lixm.fnst@cn.fujitsu.com>2019-09-27 20:15:24 +0800
committerLi Xiaoming <lixm.fnst@cn.fujitsu.com>2019-09-27 20:15:24 +0800
commitc83df6f71f5dead914bc0f5522928b6de066dd1e (patch)
treeb7c584fcaa9a86e5880a71f66f1dda14548be43d /app/api/Binding.qml
parentd216c5604b7598f120d7d53754ac5a7791d45be5 (diff)
Message: == and != may perform type coercion, use === or !== to avoid it. Description: The non-strict equality comparison is allowed to convert its arguments to a common type. That can lead to unexpected results such as ' \t\r\n' == 0 being true. Use the strict equality operators === and !== and be explicit about conversions you require. Bug-AGL: SPEC-2814 Change-Id: I384b107bf93480202cbae573937e4f602ef29306 Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
Diffstat (limited to 'app/api/Binding.qml')
-rw-r--r--app/api/Binding.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/api/Binding.qml b/app/api/Binding.qml
index 3b43510..a53f76b 100644
--- a/app/api/Binding.qml
+++ b/app/api/Binding.qml
@@ -89,10 +89,10 @@ WebSocket {
break
case msgid.retok:
var verb = verbs.shift()
- if (verb == "frequency_range") {
+ if (verb === "frequency_range") {
minimumFrequency = response.min
maximumFrequency = response.max
- } else if (verb == "frequency_step") {
+ } else if (verb === "frequency_step") {
frequencyStep = response.step
}
break