Skip to content

Commit

Permalink
config: fix panic
Browse files Browse the repository at this point in the history
parsing an empty file results in a <nil> map
  • Loading branch information
rsteube committed Dec 6, 2024
1 parent 3358462 commit 7bfd3da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/bridges/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,9 @@ func Config() map[string]string {
carapace.LOG.Println(err.Error())
return make(map[string]string)
}

if completers == nil {
return make(map[string]string)
}
return completers
}

0 comments on commit 7bfd3da

Please sign in to comment.