Skip to content

Commit 85142d5

Browse files
committed
comment fix
1 parent 577a07b commit 85142d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/impl/packages.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020
func (d *Devbox) profileDir() (string, error) {
2121
absPath := filepath.Join(d.projectDir, nix.ProfilePath)
2222

23-
// Ensure the directory is cleared of old state if the Flakes feature has been turned on (or off)
2423
if err := resetProfileDirForFlakes(absPath); err != nil {
2524
debug.Log("ERROR: resetProfileDirForFlakes error: %v\n", err)
2625
}
@@ -223,6 +222,8 @@ func (d *Devbox) pendingPackagesForInstallation() ([]string, error) {
223222

224223
var resetCheckDone = false
225224

225+
// resetProfileDirForFlakes ensures the profileDir directory is cleared of old
226+
// state if the Flakes feature has been changed, from the previous execution of a devbox command.
226227
func resetProfileDirForFlakes(profileDir string) (err error) {
227228
if resetCheckDone {
228229
return nil

0 commit comments

Comments
 (0)