Skip to content

Commit

Permalink
docgen: Remove unneccessary argument from Array#pop (#15397)
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth authored May 2, 2019
1 parent 920b8f0 commit 23043f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions packages/docgen/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## Master

### Internal

- Remove unneccessary argument from an instance of `Array#pop`.

## 1.0.0 (2019-03-06)

- Initial release
2 changes: 1 addition & 1 deletion packages/docgen/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const processFile = ( rootDir, inputFile ) => {
currentFileStack.push( inputFile );
const relativePath = path.relative( rootDir, inputFile );
const result = engine( relativePath, data, getIRFromRelativePath( rootDir, last( currentFileStack ) ) );
currentFileStack.pop( inputFile );
currentFileStack.pop();
return result;
} catch ( e ) {
process.stderr.write( `\n${ e }` );
Expand Down

0 comments on commit 23043f8

Please sign in to comment.