Skip to content

Commit

Permalink
fixed syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-pmillz committed Feb 19, 2023
1 parent a383091 commit 9bfc421
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions extra/extra.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 9bfc421

Please sign in to comment.