Skip to content

Commit ce97571

Browse files
committed
lint
1 parent 1a9eaa7 commit ce97571

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

coderd/workspaces.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,10 @@ var (
3636
ttlMin = time.Minute //nolint:revive // min here means 'minimum' not 'minutes'
3737
ttlMax = 7 * 24 * time.Hour
3838

39-
errTTLMin = xerrors.New("time until shutdown must be at least one minute")
40-
errTTLMax = xerrors.New("time until shutdown must be less than 7 days")
41-
errDeadlineTooSoon = xerrors.New("new deadline must be at least 30 minutes in the future")
42-
errDeadlineBeforeStart = xerrors.New("new deadline must be before workspace start time")
43-
errDeadlineOverTemplateMax = xerrors.New("new deadline is greater than template allows")
39+
errTTLMin = xerrors.New("time until shutdown must be at least one minute")
40+
errTTLMax = xerrors.New("time until shutdown must be less than 7 days")
41+
errDeadlineTooSoon = xerrors.New("new deadline must be at least 30 minutes in the future")
42+
errDeadlineBeforeStart = xerrors.New("new deadline must be before workspace start time")
4443
)
4544

4645
func (api *API) workspace(rw http.ResponseWriter, r *http.Request) {

0 commit comments

Comments
 (0)