Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

Commit

Permalink
downgrade to go 1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
ingbyr committed Sep 5, 2022
1 parent 630633e commit 07844eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func init() {
_, err = os.Stat(baseDir)
if err != nil {
if errors.Is(err, os.ErrNotExist) {
if err := os.MkdirAll(filepath.Dir(baseDir), os.ModePerm); err != nil {
if err = os.MkdirAll(baseDir, os.ModePerm); err != nil {
panic(err)
}
} else {
Expand All @@ -35,10 +35,6 @@ func init() {
}

dbFile := filepath.Join(baseDir, "gohost.db")
_, err = os.Stat(dbFile)
if err != nil && !errors.Is(err, os.ErrNotExist) {
panic(err)
}

cfg = &Config{
BaseDir: baseDir,
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module gohost

go 1.19
go 1.18

require (
github.com/charmbracelet/bubbletea v0.22.1
Expand Down

0 comments on commit 07844eb

Please sign in to comment.