This repository was archived by the owner on Feb 12, 2024. It is now read-only.
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 33const promisify = require ( 'promisify-es6' )
44const pull = require ( 'pull-stream' )
55const globSource = require ( '../../utils/files/glob-source' )
6- const isString = require ( 'lodash/isString' )
76
87module . exports = self => {
98 return promisify ( ( ...args ) => {
109 const callback = args . pop ( )
11- const options = isString ( args [ args . length - 1 ] ) ? { } : args . pop ( )
10+ const options = typeof args [ args . length - 1 ] === 'string' ? { } : args . pop ( )
1211 const paths = args
1312
1413 pull (
Original file line number Diff line number Diff line change 22
33const fs = require ( 'fs' )
44const Path = require ( 'path' )
5- const isString = require ( 'lodash/isString' )
65const pull = require ( 'pull-stream' )
76const glob = require ( 'glob' )
87const cat = require ( 'pull-cat' )
@@ -25,7 +24,7 @@ const errCode = require('err-code')
2524* @returns {Function } pull stream source
2625*/
2726module . exports = ( ...args ) => {
28- const options = isString ( args [ args . length - 1 ] ) ? { } : args . pop ( )
27+ const options = typeof args [ args . length - 1 ] === 'string' ? { } : args . pop ( )
2928 const paths = args
3029 const deferred = defer . source ( )
3130
You can’t perform that action at this time.
0 commit comments