Skip to content

Commit 23043f8

Browse files
authored
docgen: Remove unneccessary argument from Array#pop (#15397)
1 parent 920b8f0 commit 23043f8

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

packages/docgen/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## Master
2+
3+
### Internal
4+
5+
- Remove unneccessary argument from an instance of `Array#pop`.
6+
17
## 1.0.0 (2019-03-06)
28

39
- Initial release

packages/docgen/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const processFile = ( rootDir, inputFile ) => {
5151
currentFileStack.push( inputFile );
5252
const relativePath = path.relative( rootDir, inputFile );
5353
const result = engine( relativePath, data, getIRFromRelativePath( rootDir, last( currentFileStack ) ) );
54-
currentFileStack.pop( inputFile );
54+
currentFileStack.pop();
5555
return result;
5656
} catch ( e ) {
5757
process.stderr.write( `\n${ e }` );

0 commit comments

Comments
 (0)