diff --git a/src/UI/Movies/Titles/SourceCell.js b/src/UI/Movies/Titles/SourceCell.js
index f23a64267..dda958276 100644
--- a/src/UI/Movies/Titles/SourceCell.js
+++ b/src/UI/Movies/Titles/SourceCell.js
@@ -1,4 +1,4 @@
-var NzbDroneCell = require('../../Cells/NzbDroneCell');
+var NzbDroneCell = require('../../Cells/NzbDroneCell');
module.exports = NzbDroneCell.extend({
className : 'title-source-cell',
@@ -6,7 +6,7 @@ module.exports = NzbDroneCell.extend({
render : function() {
this.$el.empty();
- var link = undefined;
+ var link;
var sourceTitle = this.model.get("sourceType");
var sourceId = this.model.get("sourceId");
@@ -30,7 +30,7 @@ module.exports = NzbDroneCell.extend({
var a = "{0}";
if (link) {
- a = "{0}"
+ a = "{0}";
}
this.$el.html(a.format(sourceTitle));
diff --git a/src/UI/Release/ForceDownloadView.js b/src/UI/Release/ForceDownloadView.js
index 7cede7b24..e6c1f7063 100644
--- a/src/UI/Release/ForceDownloadView.js
+++ b/src/UI/Release/ForceDownloadView.js
@@ -1,4 +1,4 @@
-var _ = require('underscore');
+var _ = require('underscore');
var $ = require('jquery');
var vent = require('vent');
var AppLayout = require('../AppLayout');
@@ -33,7 +33,7 @@ module.exports = Marionette.ItemView.extend({
},
onShow : function() {
- if (this.release.get("mappingResult") == "wrongYear") {
+ if (this.release.get("mappingResult") === "wrongYear") {
this.ui.titleMapping.hide();
} else {
this.ui.yearMapping.hide();
@@ -42,14 +42,14 @@ module.exports = Marionette.ItemView.extend({
_configureTemplateHelpers : function() {
this.templateHelpers.release = this.release.toJSON();
- this.templateHelpers.languages = LanguageCollection.toJSON()
+ this.templateHelpers.languages = LanguageCollection.toJSON();
},
_forceDownload : function() {
this.ui.indicator.show();
var self = this;
- if (this.release.get("mappingResult") == "wrongYear") {
+ if (this.release.get("mappingResult") === "wrongYear") {
var altYear = new AltYearModel({
movieId : this.release.get("suspectedMovieId"),
year : this.release.get("year")
diff --git a/src/UI/Release/ReleaseModel.js b/src/UI/Release/ReleaseModel.js
index eda716ec2..c0d718806 100644
--- a/src/UI/Release/ReleaseModel.js
+++ b/src/UI/Release/ReleaseModel.js
@@ -1,11 +1,11 @@
-var Backbone = require('backbone');
+var Backbone = require('backbone');
module.exports = Backbone.Model.extend({
downloadOk : function() {
- return this.get("mappingResult") == "success" || this.get("mappingResult") == "successLenientMapping";
+ return this.get("mappingResult") === "success" || this.get("mappingResult") === "successLenientMapping";
},
forceDownloadOk : function() {
- return this.get("mappingResult") == "wrongYear" || this.get("mappingResult") == "wrongTitle";
+ return this.get("mappingResult") === "wrongYear" || this.get("mappingResult") === "wrongTitle";
}
});
\ No newline at end of file