Update jwt.go

Hi! I'm using Go 1.0.2 and encountered "src/github.com/dgrijalva/jwt-go/jwt.go:87: function ends without a return statement". This commit returns explicit at the end of the function.
This commit is contained in:
Kjetil Mehl 2014-05-22 20:27:05 +02:00
parent 7bcfca65c7
commit 83c2b30a8b
1 changed files with 1 additions and 2 deletions

3
jwt.go
View File

@ -151,9 +151,8 @@ func Parse(tokenString string, keyFunc Keyfunc) (*Token, error) {
return token, vErr
} else {
return nil, &ValidationError{err: "Token contains an invalid number of segments", Errors: ValidationErrorMalformed}
}
return nil, &ValidationError{err: "Token contains an invalid number of segments", Errors: ValidationErrorMalformed}
}
// The errors that might occur when parsing and validating a token