From 8394643192abd9790fc62369c1cdda74067e44e7 Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Thu, 20 Oct 2016 09:39:33 +0200 Subject: [PATCH] feat(utils.spec.qml): remove unnecessary ternary op --- tests/ui/scripts/Utils/utils.spec.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ui/scripts/Utils/utils.spec.qml b/tests/ui/scripts/Utils/utils.spec.qml index 690c049fd..487dc9812 100644 --- a/tests/ui/scripts/Utils/utils.spec.qml +++ b/tests/ui/scripts/Utils/utils.spec.qml @@ -103,7 +103,7 @@ TestCase { output: [ 0, 2, 4, 6, 8, 10, 12, 14, 16, 18 ] }, { - cb: function (n) { return n % 2 ? 1 : 0 }, + cb: function (n) { return n % 2 }, n: 10, output: [ 0, 1, 0, 1, 0, 1, 0, 1, 0, 1 ] }