Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin8105 committed Jun 22, 2017
1 parent 331db04 commit 0e5375f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func TestGoPath(t *testing.T) {

// return env.var.
defer func() {
err = os.Setenv(gopath, existEnv)
err := os.Setenv(gopath, existEnv)
if err != nil {
t.Errorf("Cannot restore the value of $GOPATH")
}
Expand All @@ -208,7 +208,7 @@ func TestGoPath(t *testing.T) {
}

// testing
err = Start(&ProgramArgs{})
err = Start(ProgramArgs{})
if err == nil {
t.Errorf(err.Error())
}
Expand Down

0 comments on commit 0e5375f

Please sign in to comment.