Skip to content

Commit

Permalink
fix: panic error in linux #16
Browse files Browse the repository at this point in the history
  • Loading branch information
amirrezaDev1378 committed Feb 8, 2025
1 parent 431197a commit 9ef6a8c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/model-install.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ func getModelsPath() string {
case "darwin":
return macOSModelsPath
case "linux":
snapStoreDir, _ := os.Stat(snapStoreInstalledModelsPath)
snapStoreDir, err := os.Stat(snapStoreInstalledModelsPath)
if err != nil {
return linuxOSModelsPath
}
if snapStoreDir.IsDir() {
return snapStoreInstalledModelsPath
}
Expand Down

0 comments on commit 9ef6a8c

Please sign in to comment.