From 3044b3951b7cb18a425310ddfe24cb44f5939f15 Mon Sep 17 00:00:00 2001 From: Nicolas Carlier Date: Sun, 9 Feb 2020 09:27:57 +0000 Subject: [PATCH] fix(): improve configflag stability --- pkg/config/flag/types.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/config/flag/types.go b/pkg/config/flag/types.go index b346df3..2374548 100644 --- a/pkg/config/flag/types.go +++ b/pkg/config/flag/types.go @@ -17,6 +17,9 @@ func newArrayFlags(items *[]string) *arrayFlags { // Values return the values of a flag array func (i *arrayFlags) Values() []string { + if i.items == nil { + return []string{} + } return *i.items }