aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/helpers/handlebars/notEq.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/handlebars/notEq.js')
-rw-r--r--server/sonar-web/src/main/js/helpers/handlebars/notEq.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/helpers/handlebars/notEq.js b/server/sonar-web/src/main/js/helpers/handlebars/notEq.js
new file mode 100644
index 00000000000..aff01a58ba6
--- /dev/null
+++ b/server/sonar-web/src/main/js/helpers/handlebars/notEq.js
@@ -0,0 +1,4 @@
+module.exports = function (v1, v2, options) {
+ /* eslint eqeqeq: 0 */
+ return v1 != v2 ? options.fn(this) : options.inverse(this);
+};