Skip to content

Commit 9fb3b71

Browse files
committed
fix: remove redundant comments
1 parent 47ff0c7 commit 9fb3b71

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

guard/lib/guard/grpc_servers/service_account_server.ex

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ defmodule Guard.GrpcServers.ServiceAccountServer do
3333
role_id: role_id
3434
},
3535
fn ->
36-
# Validate input parameters
3736
validate_uuid!(org_id)
3837
validate_uuid!(creator_id)
3938
validate_uuid!(role_id)
@@ -42,13 +41,11 @@ defmodule Guard.GrpcServers.ServiceAccountServer do
4241
grpc_error!(:invalid_argument, "Service account name cannot be empty")
4342
end
4443

45-
# Verify organization exists
4644
case Organization.fetch(org_id) do
4745
nil ->
4846
grpc_error!(:not_found, "Organization #{org_id} not found")
4947

5048
_organization ->
51-
# Create service account
5249
params = %{
5350
org_id: org_id,
5451
name: String.trim(name),
@@ -89,7 +86,6 @@ defmodule Guard.GrpcServers.ServiceAccountServer do
8986
fn ->
9087
validate_uuid!(org_id)
9188

92-
# Use default page size if not provided or invalid
9389
effective_page_size = if page_size > 0 and page_size <= 100, do: page_size, else: 20
9490
effective_page_token = if page_token == "", do: nil, else: page_token
9591

0 commit comments

Comments
 (0)