From 7bfd3da39126e87cce2d2e5cd561bcfb7439eb22 Mon Sep 17 00:00:00 2001 From: rsteube Date: Fri, 6 Dec 2024 19:46:08 +0100 Subject: [PATCH] config: fix panic parsing an empty file results in a map --- pkg/bridges/config.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/bridges/config.go b/pkg/bridges/config.go index 210c9e6..27d82d6 100644 --- a/pkg/bridges/config.go +++ b/pkg/bridges/config.go @@ -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 }