File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const {
1515 ERR_OUT_OF_RANGE ,
1616 ERR_STREAM_DESTROYED
1717} = require ( 'internal/errors' ) . codes ;
18- const internalUtil = require ( 'internal/util' ) ;
18+ const { deprecate } = require ( 'internal/util' ) ;
1919const { validateNumber } = require ( 'internal/validators' ) ;
2020const fs = require ( 'fs' ) ;
2121const { Buffer } = require ( 'buffer' ) ;
@@ -142,7 +142,7 @@ function ReadStream(path, options) {
142142ObjectSetPrototypeOf ( ReadStream . prototype , Readable . prototype ) ;
143143ObjectSetPrototypeOf ( ReadStream , Readable ) ;
144144
145- const openReadFs = internalUtil . deprecate ( function ( ) {
145+ const openReadFs = deprecate ( function ( ) {
146146 _openReadFs ( this ) ;
147147} , 'ReadStream.prototype.open() is deprecated' , 'DEP0135' ) ;
148148ReadStream . prototype . open = openReadFs ;
@@ -370,7 +370,7 @@ WriteStream.prototype._final = function(callback) {
370370 callback ( ) ;
371371} ;
372372
373- const openWriteFs = internalUtil . deprecate ( function ( ) {
373+ const openWriteFs = deprecate ( function ( ) {
374374 _openWriteFs ( this ) ;
375375} , 'WriteStream.prototype.open() is deprecated' , 'DEP0135' ) ;
376376WriteStream . prototype . open = openWriteFs ;
You can’t perform that action at this time.
0 commit comments