File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,14 +24,23 @@ ObjectDefineProperties(module.exports, {
2424 const location = getOptionValue ( '--localstorage-file' ) ;
2525
2626 if ( location === '' ) {
27+ let warningEmitted = false ;
2728 const handler = {
2829 __proto__ : null ,
2930 get ( target , prop ) {
30- process . emitWarning ( '`--localstorage-file` was provided without a valid path' ) ;
31+ if ( ! warningEmitted ) {
32+ process . emitWarning ( '`--localstorage-file` was provided without a valid path' ) ;
33+ warningEmitted = true ;
34+ }
35+
3136 return undefined ;
3237 } ,
3338 set ( target , prop , value ) {
34- process . emitWarning ( '`--localstorage-file` was provided without a valid path' ) ;
39+ if ( ! warningEmitted ) {
40+ process . emitWarning ( '`--localstorage-file` was provided without a valid path' ) ;
41+ warningEmitted = true ;
42+ }
43+
3544 return false ;
3645 } ,
3746 } ;
You can’t perform that action at this time.
0 commit comments