From a1a89d01c4dcbe58536d6fbfbf05529a28bdbd09 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 12 Nov 2013 11:25:27 -0500 Subject: [PATCH] JSHint --- app/assets/javascripts/discourse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse.js b/app/assets/javascripts/discourse.js index 5c0b4c7597b..b924a0e092f 100644 --- a/app/assets/javascripts/discourse.js +++ b/app/assets/javascripts/discourse.js @@ -25,7 +25,7 @@ Discourse = Ember.Application.createWithMixins(Discourse.Ajax, { if (u[u.length-1] === '/') { u = u.substring(0, u.length-1); } - if (url.indexOf(u) != -1) return url; + if (url.indexOf(u) !== -1) return url; return u + url; },