Clean up plurals in func comments

Signed-off-by: Michael de Sa <mjdesa@gmail.com>
pull/10616/head
Jared Scheib 2017-10-24 15:09:37 -07:00 committed by Michael de Sa
parent 04dae2629a
commit 54dff5cc4d
2 changed files with 4 additions and 4 deletions

View File

@ -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 {

View File

@ -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 {