Skip to content

Commit ad4fe4a

Browse files
committed
linting
1 parent 536e87b commit ad4fe4a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

provisionersdk/tfpath/tfpath.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,9 @@ func (l Layout) Cleanup(ctx context.Context, logger slog.Logger, fs afero.Fs) {
176176
return
177177
}
178178

179+
// Returning an error at this point cannot do any good. The caller cannot resolve
180+
// this. There is a routine cleanup task that will remove old work directories
181+
// when this fails.
179182
logger.Error(ctx, "failed to clean up work directory after multiple attempts",
180183
slog.F("path", path), slog.Error(err))
181-
return
182184
}

0 commit comments

Comments
 (0)