File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ export default class Daemon {
130
130
} )
131
131
. then ( result => result . json ( ) )
132
132
. then ( uploadCommandInfo => {
133
- let ext = this . _extractExtensionFromCommandline ( uploadCommandInfo . commandline ) ;
133
+ let ext = Daemon . _extractExtensionFromCommandline ( uploadCommandInfo . commandline ) ;
134
134
const data = compilationResult [ ext ] || compilationResult . bin ;
135
135
if ( ! ext || ! data ) {
136
136
console . log ( 'we received a faulty ext property, defaulting to .bin' ) ;
@@ -214,7 +214,7 @@ export default class Daemon {
214
214
static _extractExtensionFromCommandline ( commandline ) {
215
215
const rx = / \{ b u i l d \. p r o j e c t _ n a m e \} \. ( \w \w \w ) \b / g;
216
216
const arr = rx . exec ( commandline ) ;
217
- if ( arr && arr . length ) {
217
+ if ( arr && arr . length > 0 ) {
218
218
return arr [ 1 ] ;
219
219
}
220
220
return null ;
You can’t perform that action at this time.
0 commit comments