Skip to content

Commit 46e240c

Browse files
refactor: update comment
1 parent 9c1e82f commit 46e240c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/prebuilds/preset_snapshot.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func (p PresetSnapshot) CalculateActions(clock quartz.Clock, backoffInterval tim
146146
return p.handleActiveTemplateVersion()
147147
}
148148

149-
// isActive returns true if the preset's template version is the active version for its template.
149+
// isActive returns true if the preset's template version is the active version, and it is neither deleted nor deprecated.
150150
// This determines whether we should maintain prebuilds for this preset or delete them.
151151
func (p PresetSnapshot) isActive() bool {
152152
return p.Preset.UsingActiveVersion && !p.Preset.Deleted && !p.Preset.Deprecated

0 commit comments

Comments
 (0)