Skip to content

Commit

Permalink
Run go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
kytrinyx committed Mar 14, 2014
1 parent e025759 commit f6da29c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion api.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ func FetchAssignments(config configuration.Config, path string) (as []Assignment
}

if resp.StatusCode != http.StatusOK {
var apiError struct { Error string `json:"error"` }
var apiError struct {
Error string `json:"error"`
}
err = json.Unmarshal(body, &apiError)
if err != nil {
err = fmt.Errorf("Error parsing API response: [%v]", err)
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func main() {

for _, a := range currentAssignments {
if argc == 1 {
if strings.ToLower(language) == strings.ToLower(a.Track) {
if strings.ToLower(language) == strings.ToLower(a.Track) {
fmt.Printf("%v: %v\n", strings.Title(a.Track), a.Slug)
}
} else {
Expand Down Expand Up @@ -132,7 +132,7 @@ func main() {
ShortName: "l",
Usage: "Save exercism.io api credentials",
Action: func(c *cli.Context) {
configuration.ToFile(c.GlobalString("config"), askForConfigInfo());
configuration.ToFile(c.GlobalString("config"), askForConfigInfo())
},
},
{
Expand Down

0 comments on commit f6da29c

Please sign in to comment.