Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[now dev] Remove useless debug() call #2619

Merged
merged 1 commit into from
Jul 24, 2019

Conversation

TooTallNate
Copy link
Member

The getNowConfig(false) used to be within this if branch, so the debug call made sense there at the time, but as of zero config it got moved to always be invoked, so this debug() call doesn't make sense anymore.

The `getNowConfig(false)` used to be within this `if` branch, so the
debug call made sense there at the time, but as of zero config it got
moved to always be invoked, so this `debug()` call doesn't make sense
anymore.
Copy link
Contributor

@AndyBitz AndyBitz left a comment

Choose a reason for hiding this comment

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

As far as I remember this was like this even before zero config was added.

Copy link
Member

@styfle styfle left a comment

Choose a reason for hiding this comment

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

Looks fine since the comment says "invalidate the in-memory copy" and it clearly is not doing anything besides debug()

@TooTallNate
Copy link
Member Author

@AndyBitz Ya you're right, it ended up happening in d740df9.

@codecov-io
Copy link

Codecov Report

Merging #2619 into canary will decrease coverage by 0.29%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           canary   #2619     +/-   ##
========================================
- Coverage    8.25%   7.95%   -0.3%     
========================================
  Files         258     258             
  Lines        9477    9399     -78     
  Branches     1100    1067     -33     
========================================
- Hits          782     748     -34     
+ Misses       8644    8602     -42     
+ Partials       51      49      -2
Impacted Files Coverage Δ
src/util/dev/server.ts 11.32% <ø> (+0.03%) ⬆️
src/util/metrics.ts 68.18% <0%> (-11.13%) ⬇️
src/util/dev/builder-cache.ts 29.54% <0%> (-2.3%) ⬇️

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 c0b5a01...d45b75f. Read the comment docs.

@TooTallNate TooTallNate merged commit 2054bb0 into canary Jul 24, 2019
@TooTallNate TooTallNate deleted the remove/now-dev-useless-deubg branch July 24, 2019 19:39
AndyBitz pushed a commit that referenced this pull request Jul 25, 2019
The `getNowConfig(false)` used to be within this `if` branch, so the
debug call made sense there at the time, but as of zero config it got
moved to always be invoked, so this `debug()` call doesn't make sense
anymore.
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.

None yet

4 participants