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

Cleanup context.go #1264

Merged
merged 1 commit into from Apr 24, 2021
Merged

Cleanup context.go #1264

merged 1 commit into from Apr 24, 2021

Conversation

dearchap
Copy link
Contributor

@dearchap dearchap commented Apr 5, 2021

What type of PR is this?

  • bug
  • cleanup
  • documentation
  • feature

What this PR does / why we need it:

Trying to make sure that function calls of the type someFoo(something, ctx) are part of receiver of ctx as (ctx *Context) someFoo(something). The error interfaces that were defined in context.go were shifted to errors.go. This makes the code more logical and clean. This is one step in making the code more modular.

Which issue(s) this PR fixes:

None

Special notes for your reviewer:

No logic was changed. This is a simple rearranging of the code to make it more structured. No new tests were added. Existing tests remain the same but with new function signatures for ctx methods.

Testing

go test ./...

Release Notes

None.


@dearchap dearchap requested a review from a team as a code owner April 5, 2021 12:02
@dearchap dearchap requested review from saschagrunert and asahasrabuddhe and removed request for a team April 5, 2021 12:02
@dearchap dearchap mentioned this pull request Apr 8, 2021
20 tasks
Copy link
Member

@rliebz rliebz left a comment

Choose a reason for hiding this comment

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

Looks good, thanks for the contribution!

@rliebz rliebz merged commit 45eecb1 into urfave:master Apr 24, 2021
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

2 participants