Address eslint complaints

This commit is contained in:
John Hensley
2018-02-01 12:45:17 -05:00
committed by Kshitij Sobti
parent cc8f36a94f
commit df09765ee1
2 changed files with 11 additions and 4 deletions

View File

@@ -45,9 +45,11 @@
},
error: function(self, response) {
if (response.responseJSON && response.responseJSON.error) {
self.errorMessage = response.responseJSON.error || ''; // eslint-disable-line no-param-reassign
// eslint-disable-next-line no-param-reassign
self.errorMessage = response.responseJSON.error || '';
} else {
self.errorMessage = ''; // eslint-disable-line no-param-reassign
// eslint-disable-next-line no-param-reassign
self.errorMessage = '';
}
self.trigger('error');
@@ -73,7 +75,8 @@
},
error: function(self, response) {
if (response.responseJSON && response.responseJSON.error) {
self.errorMessage = response.responseJSON.error || ''; // eslint-disable-line no-param-reassign
// eslint-disable-next-line no-param-reassign
self.errorMessage = response.responseJSON.error || '';
} else {
self.errorMessage = ''; // eslint-disable-line no-param-reassign
}

View File

@@ -93,7 +93,11 @@
},
showErrorMessage: function() {
HtmlUtils.setHtml(this.$el, HtmlUtils.template(this.errorTemplate)({errorMessage: this.collection.errorMessage}));
HtmlUtils.setHtml(
this.$el,
HtmlUtils.template(this.errorTemplate)({
errorMessage: this.collection.errorMessage
}));
this.showResults();
},