Skip to content

Commit

Permalink
fixed: crash
Browse files Browse the repository at this point in the history
todo: proper handling of "file:///" for Windows/Linux/Mac
  • Loading branch information
thorstendb-ARM committed Jan 11, 2024
1 parent c8a87e8 commit ffec58a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func CheckConnection(url string, timeOut int) error {
// FileExists checks if filePath is an actual file in the local file system
func FileExists(filePath string) bool {
info, err := os.Stat(filePath)
if os.IsNotExist(err) {
if info == nil || os.IsNotExist(err) {
return false
}
return !info.IsDir()
Expand Down

0 comments on commit ffec58a

Please sign in to comment.