Skip to content

Commit 3b697d0

Browse files
minor fixes
1 parent 1c615c0 commit 3b697d0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

enterprise/coderd/prebuilds/reconcile.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -271,12 +271,8 @@ func (c *StoreReconciler) ReconcileAll(ctx context.Context) error {
271271
isPresetHardLimited := make(map[hardLimitedPresetKey]bool)
272272
for key, presets := range presetsMap {
273273
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-
}
274+
if preset.UsingActiveVersion && !preset.Deleted && snapshot.IsHardLimited(preset.ID) {
275+
isPresetHardLimited[key] = true
280276
break
281277
}
282278
}

0 commit comments

Comments
 (0)