Skip to content

Commit

Permalink
consts with custom types must have their types specified unless they …
Browse files Browse the repository at this point in the history
…undergo type conversion
  • Loading branch information
aodin committed Aug 4, 2015
1 parent 017bf7b commit ccee4ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions access.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ type AccessRequestType string

const (
AUTHORIZATION_CODE AccessRequestType = "authorization_code"
REFRESH_TOKEN = "refresh_token"
PASSWORD = "password"
CLIENT_CREDENTIALS = "client_credentials"
ASSERTION = "assertion"
IMPLICIT = "__implicit"
REFRESH_TOKEN AccessRequestType = "refresh_token"
PASSWORD AccessRequestType = "password"
CLIENT_CREDENTIALS AccessRequestType = "client_credentials"
ASSERTION AccessRequestType = "assertion"
IMPLICIT AccessRequestType = "__implicit"
)

// AccessRequest is a request for access tokens
Expand Down
2 changes: 1 addition & 1 deletion authorize.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type AuthorizeRequestType string

const (
CODE AuthorizeRequestType = "code"
TOKEN = "token"
TOKEN AuthorizeRequestType = "token"
)

// Authorize request information
Expand Down

0 comments on commit ccee4ce

Please sign in to comment.