forked from forgejo/forgejo
go vet
This commit is contained in:
parent
5c2da610a2
commit
9d983f27d6
7 changed files with 9 additions and 16 deletions
|
@ -9,7 +9,6 @@ package oauth2
|
|||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strings"
|
||||
|
@ -95,11 +94,6 @@ func (t *token) ExpiryTime() time.Time {
|
|||
return t.Expiry
|
||||
}
|
||||
|
||||
// Formats tokens into string.
|
||||
func (t *token) String() string {
|
||||
return fmt.Sprintf("tokens: %v", t)
|
||||
}
|
||||
|
||||
// Returns a new Google OAuth 2.0 backend endpoint.
|
||||
func Google(opts *Options) martini.Handler {
|
||||
opts.AuthUrl = "https://accounts.google.com/o/oauth2/auth"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue