drop check on shut down
Signed-off-by: Raffaele Di Fazio <raffo@github.com>
This commit is contained in:
parent
c4f0eda96d
commit
c222c3d696
1 changed files with 1 additions and 1 deletions
|
|
@ -261,7 +261,7 @@ func filterCodespacesToDelete(codespaces []*api.Codespace, keepThresholdDays int
|
|||
if err != nil {
|
||||
return nil, fmt.Errorf("error parsing last used at date: %w", err)
|
||||
}
|
||||
if t.Before(now().AddDate(0, 0, -keepThresholdDays)) && codespace.Environment.State == "Shutdown" {
|
||||
if t.Before(now().AddDate(0, 0, -keepThresholdDays)) {
|
||||
codespacesToDelete = append(codespacesToDelete, codespace)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue