Skip to content

Commit

Permalink
fix: remove duplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
davidby-influx committed Dec 23, 2023
1 parent 6fedf82 commit c0ecad0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tenant/storage_bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func (s *Store) GetBucketByName(ctx context.Context, tx kv.Tx, orgID platform.ID

buf, err := idx.Get(key)

// allow for hard coded bucket names that dont exist in the system
// allow for hard coded bucket names that don't exist in the system
if kv.IsNotFound(err) {
return nil, ErrBucketNotFoundByName(n)
}
Expand Down
2 changes: 1 addition & 1 deletion tenant/storage_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ func (s *Store) DeleteUser(ctx context.Context, tx kv.Tx, id platform.ID) (retEr
}

if err := idx.Delete([]byte(u.Name)); err != nil {
return errors.ErrInternalServiceError(err, errors.WithErrorOp(influxdb.OpDeleteUser))
return err
}

b, err := tx.Bucket(userBucket)
Expand Down

0 comments on commit c0ecad0

Please sign in to comment.