File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 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 {
130130 } )
131131 . then ( result => result . json ( ) )
132132 . then ( uploadCommandInfo => {
133- let ext = this . _extractExtensionFromCommandline ( uploadCommandInfo . commandline ) ;
133+ let ext = Daemon . _extractExtensionFromCommandline ( uploadCommandInfo . commandline ) ;
134134 const data = compilationResult [ ext ] || compilationResult . bin ;
135135 if ( ! ext || ! data ) {
136136 console . log ( 'we received a faulty ext property, defaulting to .bin' ) ;
@@ -214,7 +214,7 @@ export default class Daemon {
214214 static _extractExtensionFromCommandline ( commandline ) {
215215 const rx = / \{ b u i l d \. p r o j e c t _ n a m e \} \. ( \w \w \w ) \b / g;
216216 const arr = rx . exec ( commandline ) ;
217- if ( arr && arr . length ) {
217+ if ( arr && arr . length > 0 ) {
218218 return arr [ 1 ] ;
219219 }
220220 return null ;
You can’t perform that action at this time.
0 commit comments