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

Skip to content

Commit 10ac765

Browse files
committed
typos and lint
1 parent d878e71 commit 10ac765

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

coderd/authzquery/authz.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var (
2222
NoActorError = xerrors.Errorf("no authorization actor in context: %w", sql.ErrNoRows)
2323
)
2424

25-
// NotAuthorizedError is a sentinal error that unwraps to sql.ErrNoRows.
25+
// NotAuthorizedError is a sentinel error that unwraps to sql.ErrNoRows.
2626
// This allows the internal error to be read by the caller if needed. Otherwise
2727
// it will be handled as a 404.
2828
type NotAuthorizedError struct {

coderd/authzquery/user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func (q *AuthzQuerier) GetUsersWithCount(ctx context.Context, arg database.GetUs
8181
return nil, -1, xerrors.Errorf("no authorization actor in context")
8282
}
8383

84-
// TODO: Is this correct? Should we return a retricted user?
84+
// TODO: Is this correct? Should we return a restricted user?
8585
users := database.ConvertUserRows(rowUsers)
8686
users, err = rbac.Filter(ctx, q.authorizer, act, rbac.ActionRead, users)
8787
if err != nil {

coderd/authzquery/workspace.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func (q *AuthzQuerier) GetWorkspaceAgentByID(ctx context.Context, id uuid.UUID)
5656
fetch := func(agent database.WorkspaceAgent, _ uuid.UUID) (database.Workspace, error) {
5757
return q.database.GetWorkspaceByAgentID(ctx, agent.ID)
5858
}
59-
// Curently agent resource is just the related workspace resource.
59+
// Currently agent resource is just the related workspace resource.
6060
return authorizedQueryWithRelated(q.logger, q.authorizer, rbac.ActionRead, fetch, q.database.GetWorkspaceAgentByID)(ctx, id)
6161
}
6262

0 commit comments

Comments
 (0)