Skip to content

Code cleanup from Go Report Card#401

Merged
meatballhat merged 3 commits into
urfave:masterfrom
mattfarina:cleanup
May 9, 2016
Merged

Code cleanup from Go Report Card#401
meatballhat merged 3 commits into
urfave:masterfrom
mattfarina:cleanup

Conversation

@mattfarina
Copy link
Copy Markdown
Contributor

Go Report Card found some low hanging fruit that can be fixed and bring the score up to an A+ (from the A today). This PR...

  1. Fixes misspellings and some files that do not follow gofmt.
  2. Updated code comments per golint.
  3. Removed a few unneeded else clauses (the if returns) that are caught by golint.

The motivation for this was my editor yelling at me for these when I read the code.

mattfarina added 3 commits May 9, 2016 09:40
When an if ends in a return the else is not required. golint
detects these conditions and found these.
@meatballhat
Copy link
Copy Markdown
Member

Lovely! 😻

@meatballhat meatballhat merged commit 1d47add into urfave:master May 9, 2016
@mattfarina mattfarina deleted the cleanup branch May 9, 2016 14:53
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.

2 participants