diff options
| author | Amir Zarrinkafsh <nightah@me.com> | 2020-05-06 05:35:32 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-05 21:35:32 +0200 |
| commit | 1600e0f7da7219e2398fbef68b982d0b466db266 (patch) | |
| tree | 0726477687703c0953854f7f98f90c39e1f3b8a9 /internal/utils/files.go | |
| parent | c13196a86e267298edb3458d3e47918565e3d139 (diff) | |
[CI] Add wsl linter (#980)
* [CI] Add wsl linter
* Implement wsl recommendations
Co-authored-by: Clément Michaud <clement.michaud34@gmail.com>
Diffstat (limited to 'internal/utils/files.go')
| -rw-r--r-- | internal/utils/files.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/utils/files.go b/internal/utils/files.go index 841c6ca78..a70d11c04 100644 --- a/internal/utils/files.go +++ b/internal/utils/files.go @@ -10,8 +10,10 @@ func FileExists(path string) (bool, error) { if err == nil { return true, nil } + if os.IsNotExist(err) { return false, nil } + return true, err } |
