Skip to content

Commit

Permalink
Update internal/moduleconfig/moduleconfig.go
Browse files Browse the repository at this point in the history
Co-authored-by: Alec Thomas <[email protected]>
  • Loading branch information
stuartwdouglas and alecthomas authored Aug 17, 2024
1 parent 2f75449 commit 2311cff
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions internal/moduleconfig/moduleconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,13 +215,7 @@ func setConfigDefaults(moduleDir string, config *ModuleConfig) error {

func fileExists(filename string) bool {
_, err := os.Stat(filename)
if err == nil {
return true
}
if os.IsNotExist(err) {
return false
}
return false
return err == nil
}

func isBeneath(moduleDir, path string) bool {
Expand Down

0 comments on commit 2311cff

Please sign in to comment.