We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f031b10 commit 93a5e1bCopy full SHA for 93a5e1b
coderd/workspacequota/workspacequota.go
@@ -7,7 +7,7 @@ type Enforcer interface {
7
8
type nop struct{}
9
10
-func NewNop() *nop {
+func NewNop() Enforcer {
11
return &nop{}
12
}
13
enterprise/coderd/coderd.go
@@ -212,7 +212,7 @@ func (api *API) updateEntitlements(ctx context.Context) error {
212
213
214
if entitlements.workspaceQuota != api.entitlements.workspaceQuota {
215
- if entitlements.workspaceQuota != codersdk.EntitlementNotEntitled && api.Options.UserWorkspaceQuota > 0 {
+ if entitlements.workspaceQuota != codersdk.EntitlementNotEntitled && api.UserWorkspaceQuota > 0 {
216
enforcer := NewEnforcer(api.Options.UserWorkspaceQuota)
217
api.AGPL.WorkspaceQuotaEnforcer.Store(&enforcer)
218
0 commit comments