Skip to content

Commit

Permalink
Fix a minor lint on an error string
Browse files Browse the repository at this point in the history
I've always felt like the starting capital here was weird (even if
grammatically correct), so I'm not sure why I didn't rewrite it like
this before.
  • Loading branch information
ahamlinman committed Apr 24, 2024
1 parent eb36bd4 commit 8045d3c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions internal/store/bbolt/bbolt.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,13 @@ type Store struct {
// New creates a new store backed by the provided (pre-opened) bbolt database.
func New(db *bolt.DB, bucket string) (Store, error) {
if db == nil {
return Store{}, errors.New("Bolt instance is required")
return Store{}, errors.New("bolt.DB instance is required")
}

if bucket == "" {
return Store{}, errors.New("bucket is required")
}

return Store{
db: db,
bucket: bucket,
}, nil
return Store{db: db, bucket: bucket}, nil
}

// List obtains the set of stored groups.
Expand Down

0 comments on commit 8045d3c

Please sign in to comment.