api: run go fmt
This commit is contained in:
parent
1aea90cb07
commit
a4fbf67d73
@ -1,8 +1,8 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -145,7 +145,7 @@ func domainExportBeginHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
go domainExportBegin(o.Email, o.Name, *x.Domain);
|
go domainExportBegin(o.Email, o.Name, *x.Domain)
|
||||||
|
|
||||||
bodyMarshal(w, response{"success": true})
|
bodyMarshal(w, response{"success": true})
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ func githubGetPrimaryEmail(accessToken string) (string, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
nonPrimaryEmail := ""
|
nonPrimaryEmail := ""
|
||||||
for _, email := range(user) {
|
for _, email := range user {
|
||||||
nonPrimaryEmail = email["email"].(string)
|
nonPrimaryEmail = email["email"].(string)
|
||||||
if email["primary"].(bool) {
|
if email["primary"].(bool) {
|
||||||
return email["email"].(string), nil
|
return email["email"].(string), nil
|
||||||
|
Loading…
Reference in New Issue
Block a user