diff options
author | Arne Juul <arnej@yahooinc.com> | 2022-09-29 13:29:32 +0000 |
---|---|---|
committer | Arne Juul <arnej@yahooinc.com> | 2022-09-29 13:29:32 +0000 |
commit | 88122f5ef3a7ffa63cc5974b6703bd8b2b3f89ca (patch) | |
tree | 1064d97ecf18431f8c2c2549a7781a51e27bd0ce /client | |
parent | 8e9b28e7617cdcd7ccc6d5e7111d3b6b17d66626 (diff) |
fix typo
Diffstat (limited to 'client')
-rw-r--r-- | client/go/util/io.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/go/util/io.go b/client/go/util/io.go index fc81bb38f6f..89f14c1a643 100644 --- a/client/go/util/io.go +++ b/client/go/util/io.go @@ -20,13 +20,13 @@ func PathExists(path string) bool { return !errors.Is(err, os.ErrNotExist) } -// Returns true is the given path points to an existing directory +// Returns true if the given path points to an existing directory func IsDirectory(path string) bool { info, err := os.Stat(path) return !errors.Is(err, os.ErrNotExist) && info.IsDir() } -// Returns true is the given path points to an existing file +// Returns true if the given path points to an existing file func IsRegularFile(path string) bool { info, err := os.Stat(path) return !errors.Is(err, os.ErrNotExist) && info.Mode().IsRegular() |