From c83df6f71f5dead914bc0f5522928b6de066dd1e Mon Sep 17 00:00:00 2001 From: Li Xiaoming Date: Fri, 27 Sep 2019 20:15:24 +0800 Subject: fix(Binding.qml): Remove qml M126 warning 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 --- app/api/Binding.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/api') 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 -- cgit 1.2.3-korg