This repository was archived by the owner on Feb 12, 2024. It is now read-only.
File tree 2 files changed +2
-4
lines changed 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 3
3
const promisify = require ( 'promisify-es6' )
4
4
const pull = require ( 'pull-stream' )
5
5
const globSource = require ( '../../utils/files/glob-source' )
6
- const isString = require ( 'lodash/isString' )
7
6
8
7
module . exports = self => {
9
8
return promisify ( ( ...args ) => {
10
9
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 ( )
12
11
const paths = args
13
12
14
13
pull (
Original file line number Diff line number Diff line change 2
2
3
3
const fs = require ( 'fs' )
4
4
const Path = require ( 'path' )
5
- const isString = require ( 'lodash/isString' )
6
5
const pull = require ( 'pull-stream' )
7
6
const glob = require ( 'glob' )
8
7
const cat = require ( 'pull-cat' )
@@ -25,7 +24,7 @@ const errCode = require('err-code')
25
24
* @returns {Function } pull stream source
26
25
*/
27
26
module . exports = ( ...args ) => {
28
- const options = isString ( args [ args . length - 1 ] ) ? { } : args . pop ( )
27
+ const options = typeof args [ args . length - 1 ] === 'string' ? { } : args . pop ( )
29
28
const paths = args
30
29
const deferred = defer . source ( )
31
30
You can’t perform that action at this time.
0 commit comments