Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d878e71

Browse files
committed
remove excess comments
1 parent 874e9da commit d878e71

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

coderd/authzquery/workspace.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -203,20 +203,10 @@ func (q *AuthzQuerier) GetWorkspaceByAgentID(ctx context.Context, agentID uuid.U
203203
return authorizedFetch(q.logger, q.authorizer, q.database.GetWorkspaceByAgentID)(ctx, agentID)
204204
}
205205

206-
// GetWorkspaceByID
207-
// Gen: Workspace
208-
// Args: Workspace.ID
209-
// Assert: Workspace.read
210206
func (q *AuthzQuerier) GetWorkspaceByID(ctx context.Context, id uuid.UUID) (database.Workspace, error) {
211207
return authorizedFetch(q.logger, q.authorizer, q.database.GetWorkspaceByID)(ctx, id)
212208
}
213209

214-
// OwnerID uuid.UUID `db:"owner_id" json:"owner_id"`
215-
// Deleted bool `db:"deleted" json:"deleted"`
216-
// Name string `db:"name" json:"name"`
217-
218-
// GetWorkspaceByOwnerIDAndName
219-
// Gen: Workspace
220210
func (q *AuthzQuerier) GetWorkspaceByOwnerIDAndName(ctx context.Context, arg database.GetWorkspaceByOwnerIDAndNameParams) (database.Workspace, error) {
221211
return authorizedFetch(q.logger, q.authorizer, q.database.GetWorkspaceByOwnerIDAndName)(ctx, arg)
222212
}

0 commit comments

Comments
 (0)