File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ module.exports = {
38
38
'ember-concurrency/no-perform-without-catch' : 'warn' ,
39
39
'ember-concurrency/require-task-name-suffix' : 'error' ,
40
40
41
+ 'unicorn/explicit-length-check' : [ 'error' , { 'non-zero' : 'not-equal' } ] ,
41
42
// disabled because we need `null` since JSON has no `undefined`
42
43
'unicorn/no-null' : 'off' ,
43
44
// disabled because this rule conflicts with prettier
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ export default class CrateVersionController extends Controller {
81
81
versions . push ( version . getProperties ( 'id' , 'num' ) ) ;
82
82
} ) ;
83
83
}
84
- if ( extra . length > 0 ) {
84
+ if ( extra . length !== 0 ) {
85
85
versions . push ( {
86
86
id : null ,
87
87
num : 'Other' ,
@@ -136,7 +136,7 @@ export default class CrateVersionController extends Controller {
136
136
// if we know about a successful docs.rs build, we'll return a link to that
137
137
if ( this . loadDocsBuildsTask . lastSuccessful ) {
138
138
let docsBuilds = this . loadDocsBuildsTask . lastSuccessful . value ;
139
- if ( docsBuilds . length > 0 && docsBuilds [ 0 ] . build_status === true ) {
139
+ if ( docsBuilds . length !== 0 && docsBuilds [ 0 ] . build_status === true ) {
140
140
return `https://docs.rs/${ this . crate . name } /${ this . currentVersion . num } ` ;
141
141
}
142
142
}
You can’t perform that action at this time.
0 commit comments