api: run go fmt

This commit is contained in:
Adhityaa Chandrasekar 2019-02-04 18:10:59 -05:00
parent 1aea90cb07
commit a4fbf67d73
5 changed files with 11 additions and 11 deletions

View File

@ -1,8 +1,8 @@
package main
import (
"net/http"
"encoding/json"
"net/http"
"time"
)
@ -145,7 +145,7 @@ func domainExportBeginHandler(w http.ResponseWriter, r *http.Request) {
return
}
go domainExportBegin(o.Email, o.Name, *x.Domain);
go domainExportBegin(o.Email, o.Name, *x.Domain)
bodyMarshal(w, response{"success": true})
}

View File

@ -1,8 +1,8 @@
package main
import (
"net/http"
"fmt"
"net/http"
"time"
)

View File

@ -24,7 +24,7 @@ func githubGetPrimaryEmail(accessToken string) (string, error) {
}
nonPrimaryEmail := ""
for _, email := range(user) {
for _, email := range user {
nonPrimaryEmail = email["email"].(string)
if email["primary"].(bool) {
return email["email"].(string), nil