1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-09 15:35:27 +02:00

fix lint issue

This commit is contained in:
Elliott Stoneham 2016-07-01 17:41:25 +01:00
parent 8d78c8aa64
commit c3aee35930

View file

@ -12,6 +12,7 @@
package github package github
import ( import (
"fmt"
"html/template" "html/template"
"strings" "strings"
"time" "time"
@ -254,7 +255,7 @@ func (c *githubConfig) Clean() {
var since time.Time var since time.Time
tt := []byte("yyyy-mm-ddThh:mm:00Z") tt := []byte("yyyy-mm-ddThh:mm:00Z")
for _, i := range []int{0, 1, 2, 3, 5, 6, 8, 9, 11, 12, 14, 15} { for _, i := range []int{0, 1, 2, 3, 5, 6, 8, 9, 11, 12, 14, 15} {
tt[i] = byte(c.BranchSince[i]) tt[i] = c.BranchSince[i]
} }
err := since.UnmarshalText(tt) err := since.UnmarshalText(tt)
if err != nil { if err != nil {
@ -263,6 +264,16 @@ func (c *githubConfig) Clean() {
c.SincePtr = &since c.SincePtr = &since
} }
} }
fmt.Println("DEBUG-1 client:", c.Token, c.Owner, c.Repo, c.ReportInfo, c.Branch)
fmt.Printf("DEBUG-2 client %#v\n", *c)
var x Provider
auth, _, err := x.githubClient(nil).Authorizations.Check(clientID(), c.Token)
if err != nil {
fmt.Printf("DEBUG-3 client %#v\n", err.Error())
} else {
fmt.Printf("DEBUG-4 client %#v\n", *auth)
}
} }
type githubCallbackT struct { type githubCallbackT struct {