Skip to content

Commit

Permalink
Remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
GGP1 committed Sep 8, 2022
1 parent 83cea00 commit c771af1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,13 @@ import (
bolt "go.etcd.io/bbolt"
)

var (
version = "development"
commit = ""
)

func main() {
if err := config.Init(); err != nil {
log.Fatalf("couldn't initialize the configuration: %v", err)
}

dbPath := filepath.Clean(config.GetString("database.path"))
db, err := bolt.Open(dbPath, 0600, &bolt.Options{Timeout: 200 * time.Millisecond})
db, err := bolt.Open(dbPath, 0o600, &bolt.Options{Timeout: 200 * time.Millisecond})
if err != nil {
log.Fatalf("couldn't open the database: %v", err)
}
Expand Down

0 comments on commit c771af1

Please sign in to comment.