Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Nokel81
Copy link

@Nokel81 Nokel81 commented Mar 31, 2020

What type of PR is this?

(REQUIRED)

  • bug
  • cleanup
  • documentation
  • feature

What this PR does / why we need it:

(REQUIRED)

This change fixes App.ErrWriter not being initialized in App.Setup() like App.Writer. It also removes the App.errWriter() private method since App.ErrWriter is now set directly.

Which issue(s) this PR fixes:

(REQUIRED)

Fixes #1096

Release Notes

(REQUIRED)

- `App.ErrWriter` now defaults to `os.Stderr` if not set.

- Defaults to os.Stderr
- Remove the App.errWriter() function since it is no longer needed
@Nokel81 Nokel81 requested a review from a team as a code owner March 31, 2020 14:49
Copy link
Member

@coilysiren coilysiren left a comment

Choose a reason for hiding this comment

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

⭐⭐⭐ (must change) It's probably gonna be annoying to write, but I would like to see a test for this behavior!

@codecov
Copy link

codecov bot commented Apr 1, 2020

Codecov Report

Merging #1100 into master will increase coverage by 0.19%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1100      +/-   ##
==========================================
+ Coverage   73.07%   73.26%   +0.19%     
==========================================
  Files          34       34              
  Lines        2488     2484       -4     
==========================================
+ Hits         1818     1820       +2     
+ Misses        564      559       -5     
+ Partials      106      105       -1
Impacted Files Coverage Δ
app.go 83.4% <66.66%> (+2.17%) ⬆️

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 39f9fbd...fed64f3. Read the comment docs.

@coilysiren
Copy link
Member

✨thanks! ✨

@coilysiren coilysiren merged commit 95b323f into urfave:master Apr 2, 2020
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.

q: App.Writer is being set twice

3 participants