Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

Add enable option to disable flushing #158

Merged
merged 4 commits into from
Feb 28, 2018
Merged

Conversation

wlingke
Copy link
Contributor

@wlingke wlingke commented Feb 24, 2018

Addresses #116, follow up from #118

@codecov-io
Copy link

codecov-io commented Feb 24, 2018

Codecov Report

Merging #158 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #158   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           1      1           
  Lines          97    102    +5     
=====================================
+ Hits           97    102    +5
Impacted Files Coverage Δ
index.js 100% <100%> (ø) ⬆️

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 7e4a9ed...662fec7. Read the comment docs.

index.js Outdated
configurable: false,
writable: false,
enumerable: true,
value: options.enable === false ? options.enable : true

Choose a reason for hiding this comment

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

Could you replace that with typeof options.enable === 'boolean'?

@wlingke
Copy link
Contributor Author

wlingke commented Feb 26, 2018 via email

@vadimdemedes
Copy link

Yes, the outcome is the same, but that code reads differently and is quicker to understand its purpose.

@wlingke
Copy link
Contributor Author

wlingke commented Feb 27, 2018

Okay updated

@vadimdemedes vadimdemedes merged commit 98821ef into segmentio:master Feb 28, 2018
@vadimdemedes
Copy link

@wlingke Thanks!
@f2prateek Could you publish a new minor version? I don't have publish access to this package.

@f2prateek
Copy link
Contributor

Released in 3.3.0-beta.2!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants