Don't return nil, nil for API service methods. Add tests for updating w/ wrong version. (#396)

This commit is contained in:
Todd Knight authored and GitHub committed 2020-09-21 15:09:30 -04:00
1 parent 1adbe64160
commit 21f5cc274f
20 files changed
+71 -23

No files matched your search

@@ -134,7 +134,7 @@ func (s Service) DeleteAuthMethod(ctx context.Context, req *pbs.DeleteAuthMethod
if err != nil {
return nil, err
}
return nil, nil
return &pbs.DeleteAuthMethodResponse{}, nil
}
func (s Service) getFromRepo(ctx context.Context, id string) (*pb.AuthMethod, error) {