Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Blaschke <mblaschke82@gmail.com>
  • Loading branch information
mblaschke committed Sep 24, 2022
1 parent bb1c031 commit 5bd4127
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,6 @@ func fileGetAbsolutePath(path string) (string, os.FileInfo) {
return ret, f
}

func checkIfFileExists(path string) bool {
f, err := os.Stat(path)

// check if path exists
if err != nil {
return false
}

return (!f.IsDir()) && f.Mode().IsRegular()
}

func checkIfDirectoryExists(path string) bool {
f, err := os.Stat(path)

Expand Down

0 comments on commit 5bd4127

Please sign in to comment.