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

Cleaned up go vet issues closes getlantern/lantern#2047 #1

Merged
merged 1 commit into from Dec 10, 2014

Conversation

oxtoacart
Copy link
Contributor

No description provided.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling cbb7602 on govet into 9ae0220 on master.

@@ -29,7 +29,7 @@ const (
// length prefix)
MaxFrameLength = 1<<FrameHeaderBits - 1

tooLongError = "Attempted to write frame of length %s which is longer than maximum allowed length of %s"
tooLongError = "Attempted to write frame of length %d which is longer than maximum allowed length of %d"
)
Copy link
Contributor

Choose a reason for hiding this comment

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

%v is always super easy to use to avoid cases like this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! I only just discovered %v recently and need to break my old habits.

myleshorton added a commit that referenced this pull request Dec 10, 2014
Cleaned up go vet issues closes getlantern/lantern#2047
@myleshorton myleshorton merged commit aeabd58 into master Dec 10, 2014
@myleshorton myleshorton deleted the govet branch December 10, 2014 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants