From a11b6fd539712650c69b8a2a87b2021702f29db7 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 2 Sep 2021 02:18:14 -0700 Subject: refactor(utilities): nil-type decleration --- pkg/utilities/utilities.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/utilities') diff --git a/pkg/utilities/utilities.go b/pkg/utilities/utilities.go index 2ccbf63..4461755 100644 --- a/pkg/utilities/utilities.go +++ b/pkg/utilities/utilities.go @@ -28,7 +28,7 @@ func GetCopyright() string { // DoesFilesExist Check if the following files exist, return files that don't exist func DoesFilesExist(files []string) []string { - nonExistent := []string{} + var nonExistent []string for _, file := range files { // https://stackoverflow.com/a/12518877 -- cgit v1.2.3