mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
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:
parent
a5c7842d4f
commit
70cb63b742
3 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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 />');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Reference in a new issue