From 9bfc42144f0e9e6aa4c241b6a10e9cd7223b4e1b Mon Sep 17 00:00:00 2001 From: mr-pmillz <> Date: Sat, 18 Feb 2023 22:02:40 -0500 Subject: [PATCH] fixed syntax error --- extra/extra.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/extra/extra.go b/extra/extra.go index 264f4c3..2b20419 100644 --- a/extra/extra.go +++ b/extra/extra.go @@ -86,8 +86,7 @@ func InstallExtraPackages(osType string, dirs *localio.Directories, packages *lo if err != nil { return err } - exists, err := localio.Exists("~/.config/bat/config") - if err == nil && !exists { + if exists, err := localio.Exists("~/.config/bat/config"); err == nil && !exists { if err = localio.EmbedFileCopy("~/.config/bat/config", batConfig); err != nil { return err } @@ -194,8 +193,7 @@ func InstallExtraPackages(osType string, dirs *localio.Directories, packages *lo if err != nil { return err } - exists, err := localio.Exists("~/.config/bat/config") - if err == nil && !exists { + if exists, err := localio.Exists("~/.config/bat/config"); err == nil && !exists { if err = localio.EmbedFileCopy("~/.config/bat/config", batConfig); err != nil { return err }