Skip to content

Commit 7b54fc7

Browse files
committed
lint
1 parent a450ed8 commit 7b54fc7

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
@@ -37,11 +37,10 @@ var (
3737
ttlMin = time.Minute //nolint:revive // min here means 'minimum' not 'minutes'
3838
ttlMax = 7 * 24 * time.Hour
3939

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

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

0 commit comments

Comments
 (0)