Skip to content

Conversation

@alexander-akait
Copy link
Member

This PR contains a:

  • bugfix
  • new feature
  • code refactor
  • test update
  • typo fix
  • metadata update

Motivation / Use-Case

just simplify code

Breaking Changes

No

Additional Info

No

@codecov
Copy link

codecov bot commented Sep 28, 2019

Codecov Report

Merging #474 into master will increase coverage by 1.6%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #474     +/-   ##
=========================================
+ Coverage   95.48%   97.08%   +1.6%     
=========================================
  Files           7        7             
  Lines         310      309      -1     
  Branches      102      101      -1     
=========================================
+ Hits          296      300      +4     
+ Misses         11        9      -2     
+ Partials        3        0      -3
Impacted Files Coverage Δ
index.js 97.61% <100%> (-0.06%) ⬇️
lib/util.js 100% <0%> (+6.49%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 41038fb...9036918. Read the comment docs.

} else {
if (typeof options.filename === 'string') {
const filename = options.filename
.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&') // eslint-disable-line no-useless-escape
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add tests?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hiroppy probably already exists, it is just refactor without breaking something, i don't know why it is here 😄, i want to start rewriting this module, so tests will be in near future

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, thanks

@hiroppy hiroppy merged commit 43eef21 into master Sep 28, 2019
@hiroppy hiroppy deleted the simplify-code branch September 28, 2019 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants