File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,7 @@ const Action = (props: ActionProps) => {
40
40
} else {
41
41
seconds = '00' ;
42
42
}
43
- const convert :any = new Number ( )
44
- miliseconds = convert . parseFloat ( miliseconds ) . toFixed ( 2 ) ;
43
+ miliseconds = Number . parseFloat ( miliseconds ) . toFixed ( 2 ) ;
45
44
const arrayMiliseconds = miliseconds . split ( '.' ) ;
46
45
if ( arrayMiliseconds [ 0 ] . length < 2 ) {
47
46
arrayMiliseconds [ 0 ] = '0' . concat ( arrayMiliseconds [ 0 ] ) ;
Original file line number Diff line number Diff line change @@ -103,8 +103,7 @@ const PerfView = (props:PerfViewProps) => {
103
103
. style ( 'fill-opacity' , ( d :{ parent :object } ) => ( d . parent === packedRoot ? 1 : 0 ) )
104
104
. style ( 'display' , ( d :{ parent ?:object } ) => ( d . parent === packedRoot ? 'inline' : 'none' ) )
105
105
. text ( ( d :{ data :{ name :string , componentData ?:{ actualDuration :any } } } ) => {
106
- const convert :any = new Number ( )
107
- return `${ d . data . name } : ${ convert . parseFloat ( d . data . componentData . actualDuration || 0 ) . toFixed ( 2 ) } ms` } ) ;
106
+ return `${ d . data . name } : ${ Number . parseFloat ( d . data . componentData . actualDuration || 0 ) . toFixed ( 2 ) } ms` } ) ;
108
107
109
108
// Remove any unused nodes
110
109
label . exit ( ) . remove ( ) ;
You can’t perform that action at this time.
0 commit comments