fix: no-extra-boolean-cast

```
/Users/1ambda/github/apache/apache-zeppelin/zeppelin-master/zeppelin-web/src/app/app.js (1/0)
  ✖  40:12  Redundant double negation  no-extra-boolean-cast

/Users/1ambda/github/apache/apache-zeppelin/zeppelin-master/zeppelin-web/src/app/jobmanager/jobs/job.controller.js (2/0)
  ✖  58:18  Redundant double negation  no-extra-boolean-cast
  ✖  90:18  Redundant double negation  no-extra-boolean-cast
```
This commit is contained in:
1ambda 2017-04-15 00:31:05 +09:00
parent a5c7842d4f
commit 70cb63b742
3 changed files with 3 additions and 3 deletions

View file

@ -31,8 +31,6 @@
"process": false
},
"rules": {
"no-tabs": 0,
"no-extra-boolean-cast": 0,
"object-property-newline": 0,
"dot-location": 0,
"brace-style": 0,

View file

@ -37,6 +37,7 @@ var zeppelinWebApp = angular.module('zeppelinWebApp', [
])
.filter('breakFilter', function() {
return function(text) {
// eslint-disable-next-line no-extra-boolean-cast
if (!!text) {
return text.replace(/\n/g, '<br />');
}

View file

@ -55,6 +55,7 @@ function JobCtrl($scope, $http, baseUrlSrv) {
// success
}, function errorCallback(errorResponse) {
var errorText = 'SERVER ERROR';
// eslint-disable-next-line no-extra-boolean-cast
if (!!errorResponse.data.message) {
errorText = errorResponse.data.message;
}
@ -86,8 +87,8 @@ function JobCtrl($scope, $http, baseUrlSrv) {
// success
}, function errorCallback(errorResponse) {
var errorText = 'SERVER ERROR';
// eslint-disable-next-line no-extra-boolean-cast
if (!!errorResponse.data.message) {
errorText = errorResponse.data.message;
}
BootstrapDialog.alert({