Skip to content

Commit 93a5e1b

Browse files
committed
fix option usage
1 parent f031b10 commit 93a5e1b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

coderd/workspacequota/workspacequota.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type Enforcer interface {
77

88
type nop struct{}
99

10-
func NewNop() *nop {
10+
func NewNop() Enforcer {
1111
return &nop{}
1212
}
1313

enterprise/coderd/coderd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ func (api *API) updateEntitlements(ctx context.Context) error {
212212
}
213213

214214
if entitlements.workspaceQuota != api.entitlements.workspaceQuota {
215-
if entitlements.workspaceQuota != codersdk.EntitlementNotEntitled && api.Options.UserWorkspaceQuota > 0 {
215+
if entitlements.workspaceQuota != codersdk.EntitlementNotEntitled && api.UserWorkspaceQuota > 0 {
216216
enforcer := NewEnforcer(api.Options.UserWorkspaceQuota)
217217
api.AGPL.WorkspaceQuotaEnforcer.Store(&enforcer)
218218
}

0 commit comments

Comments
 (0)