mirror of https://github.com/joho/godotenv.git
Remove commented out code and go fmt tests.
parent
68b1921266
commit
8350eb932e
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue