@@ -4,7 +4,6 @@ import * as os from 'os';
44import * as xml2js from 'xml2js' ;
55import { VirtualFolder } from './EIDETypeDefine' ;
66import { VirtualSource , AbstractProject } from './EIDEProject' ;
7- import { isArray } from 'util' ;
87import { ArrayDelRepetition } from '../lib/node-utility/Utility' ;
98import { File } from '../lib/node-utility/File' ;
109import { GlobalEvent } from './GlobalEvents' ;
@@ -483,7 +482,7 @@ export async function parseEclipseProject(cprojectPath: string): Promise<Eclipse
483482
484483 for ( const key in target . builldArgs ) {
485484 const obj : any = target . builldArgs ;
486- if ( isArray ( obj [ key ] ) ) {
485+ if ( Array . isArray ( obj [ key ] ) ) {
487486 obj [ key ] = ArrayDelRepetition ( obj [ key ] ) ;
488487 }
489488 }
@@ -508,10 +507,10 @@ function parseToolOption(optionObj: any, prjtype: EclipseProjectType): { type: s
508507
509508 const makeResult = ( value : string | string [ ] , typ ?: string ) : { type : string , val : string [ ] } | undefined => {
510509 if ( value == '' ) return undefined ;
511- if ( isArray ( value ) && value . length == 0 ) return undefined ;
510+ if ( Array . isArray ( value ) && value . length == 0 ) return undefined ;
512511 return {
513512 type : typ || VALUE_TYPE || '' ,
514- val : isArray ( value ) ? value : [ value ]
513+ val : Array . isArray ( value ) ? value : [ value ]
515514 } ;
516515 } ;
517516
@@ -792,7 +791,7 @@ function parseToolOption(optionObj: any, prjtype: EclipseProjectType): { type: s
792791
793792function toArray ( obj : any ) : any [ ] {
794793 if ( obj == undefined || obj == null ) return [ ] ;
795- if ( ! isArray ( obj ) ) return [ obj ] ;
794+ if ( ! Array . isArray ( obj ) ) return [ obj ] ;
796795 return obj ;
797796}
798797
0 commit comments