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

@@ -14,7 +14,7 @@ func githubGetPrimaryEmail(accessToken string) (string, error) {
contents, err := ioutil.ReadAll(resp.Body)
if err != nil {
return "", errorCannotReadResponse
return "", errorCannotReadResponse
}
user := []map[string]interface{}{}
@@ -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