Clean up plurals in func comments
Signed-off-by: Michael de Sa <mjdesa@gmail.com>pull/10616/head
parent
04dae2629a
commit
54dff5cc4d
|
@ -79,7 +79,7 @@ func (s *OrganizationUsersStore) Get(ctx context.Context, q chronograf.UserQuery
|
|||
return usr, nil
|
||||
}
|
||||
|
||||
// Add a new Users in the OrganizationUsersStore.
|
||||
// Add a new User to the OrganizationUsersStore.
|
||||
func (s *OrganizationUsersStore) Add(ctx context.Context, u *chronograf.User) (*chronograf.User, error) {
|
||||
orgID, err := validOrganization(ctx)
|
||||
if err != nil {
|
||||
|
@ -107,7 +107,7 @@ func (s *OrganizationUsersStore) Add(ctx context.Context, u *chronograf.User) (*
|
|||
return u, nil
|
||||
}
|
||||
|
||||
// Delete the users from the OrganizationUsersStore
|
||||
// Delete a user from the OrganizationUsersStore
|
||||
func (s *OrganizationUsersStore) Delete(ctx context.Context, usr *chronograf.User) error {
|
||||
orgID, err := validOrganization(ctx)
|
||||
if err != nil {
|
||||
|
|
|
@ -82,7 +82,7 @@ func (s *UsersStore) Get(ctx context.Context, q chronograf.UserQuery) (*chronogr
|
|||
return nil, fmt.Errorf("must specify either ID, or Name, Provider, and Scheme in UserQuery")
|
||||
}
|
||||
|
||||
// Add a new Users in the UsersStore.
|
||||
// Add a new User to the UsersStore.
|
||||
func (s *UsersStore) Add(ctx context.Context, u *chronograf.User) (*chronograf.User, error) {
|
||||
if err := s.client.db.Update(func(tx *bolt.Tx) error {
|
||||
b := tx.Bucket(UsersBucket)
|
||||
|
@ -104,7 +104,7 @@ func (s *UsersStore) Add(ctx context.Context, u *chronograf.User) (*chronograf.U
|
|||
return u, nil
|
||||
}
|
||||
|
||||
// Delete the users from the UsersStore
|
||||
// Delete a user from the UsersStore
|
||||
func (s *UsersStore) Delete(ctx context.Context, usr *chronograf.User) error {
|
||||
_, err := s.get(ctx, usr.ID)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue