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 1c615c0 commit 3b697d0Copy full SHA for 3b697d0
enterprise/coderd/prebuilds/reconcile.go
@@ -271,12 +271,8 @@ func (c *StoreReconciler) ReconcileAll(ctx context.Context) error {
271
isPresetHardLimited := make(map[hardLimitedPresetKey]bool)
272
for key, presets := range presetsMap {
273
for _, preset := range presets {
274
- if preset.UsingActiveVersion && !preset.Deleted {
275
- if snapshot.IsHardLimited(preset.ID) {
276
- isPresetHardLimited[key] = true
277
- } else {
278
- delete(isPresetHardLimited, key)
279
- }
+ if preset.UsingActiveVersion && !preset.Deleted && snapshot.IsHardLimited(preset.ID) {
+ isPresetHardLimited[key] = true
280
break
281
}
282
0 commit comments