Fixed: gulp jshint warnings (#1873)

pull/1921/head
James White 7 years ago committed by Leonardo Galli
parent a07ef20410
commit 1f7b03d321

@ -1,7 +1,7 @@
{ {
"name": "Sonarr", "name": "Radarr",
"version": "2.0.0", "version": "2.0.0",
"description": "Sonarr", "description": "Radarr",
"main": "main.js", "main": "main.js",
"scripts": { "scripts": {
"build": "gulp build", "build": "gulp build",
@ -9,7 +9,7 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git://github.com/Sonarr/Sonarr.git" "url": "git://github.com/Radarr/Radarr.git"
}, },
"author": "", "author": "",
"license": "GPL-3.0", "license": "GPL-3.0",

@ -14,6 +14,7 @@
"define": true, "define": true,
"window": true, "window": true,
"document": true, "document": true,
"console": true "console": true,
"_": true
} }
} }

@ -79,7 +79,7 @@ module.exports = Marionette.Layout.extend({
if (options.action === "search") { if (options.action === "search") {
this.search({term: options.query}); this.search({term: options.query});
} else if (options.action == "discover") { } else if (options.action === "discover") {
this.isDiscover = true; this.isDiscover = true;
} }
@ -254,7 +254,7 @@ module.exports = Marionette.Layout.extend({
_discover : function(action) { _discover : function(action) {
if (this.collection.action === action) { if (this.collection.action === action) {
return return;
} }
if (this.collection.specialProperty === "special") { if (this.collection.specialProperty === "special") {

@ -39,14 +39,14 @@ module.exports = Backgrid.Cell.extend({
break; break;
case "PTP_Approved": case "PTP_Approved":
addon = "✔"; addon = "✔";
title = "Approved by PTP" title = "Approved by PTP";
break; break;
case "HDB_Internal": case "HDB_Internal":
addon = "⭐️"; addon = "⭐️";
title = "HDBits Internal"; title = "HDBits Internal";
break; break;
} }
if (addon != "") { if (addon !== "") {
html += "<span title='{0}'>{1}</span> ".format(title, addon); html += "<span title='{0}'>{1}</span> ".format(title, addon);
} }
}); });

@ -23,7 +23,7 @@ var view = Marionette.ItemView.extend({
initialize : function() { initialize : function() {
this.model.set('profiles', Profiles); this.model.set('profiles', Profiles);
var pathState = this.model.get("pathState"); var pathState = this.model.get("pathState");
if (pathState == "static") { if (pathState === "static") {
this.model.set("pathState", true); this.model.set("pathState", true);
} else { } else {
this.model.set("pathState", false); this.model.set("pathState", false);

@ -43,11 +43,11 @@ var view = Marionette.ItemView.extend({
onRender : function() { onRender : function() {
var rootFolder = this.model.get("rootFolderPath"); var rootFolder = this.model.get("rootFolderPath");
if (rootFolder != "") { if (rootFolder !== "") {
//this.ui.rootFolder.val(rootFolder); //this.ui.rootFolder.val(rootFolder);
this.ui.rootFolder.children().filter(function() { this.ui.rootFolder.children().filter(function() {
//may want to use $.trim in here //may want to use $.trim in here
return $(this).text() == rootFolder; return $(this).text() === rootFolder;
}).attr('selected', true); }).attr('selected', true);
} else { } else {
var defaultRoot = Config.getValue(Config.Keys.DefaultRootFolderId); var defaultRoot = Config.getValue(Config.Keys.DefaultRootFolderId);

Loading…
Cancel
Save