Remove commented out code and go fmt tests.

pull/7/head
John Barton (joho) 2014-07-14 19:36:35 +10:00
parent 68b1921266
commit 8350eb932e
2 changed files with 1 additions and 3 deletions

View File

@ -88,8 +88,6 @@ func loadFile(filename string) (err error) {
func readFile(filename string) (envMap map[string]string, err error) {
file, err := os.Open(filename)
// content, err := ioutil.ReadFile(filename)
if err != nil {
return
}

View File

@ -33,7 +33,7 @@ func loadEnvAndCompareValues(t *testing.T, envFileName string, expectedValues ma
func TestLoadWithNoArgsLoadsDotEnv(t *testing.T) {
err := Load()
pathError := err.(*os.PathError)
if pathError == nil || pathError.Op != "open" || pathError.Path != ".env"{
if pathError == nil || pathError.Op != "open" || pathError.Path != ".env" {
t.Errorf("Didn't try and open .env by default")
}
}