Skip to content

Commit 6129dd9

Browse files
committed
fix: appease the linter gods
1 parent 1469e4b commit 6129dd9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

coderd/database/databasefake/databasefake.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,7 @@ func (q *fakeQuerier) UpdateProvisionerJobWithCompleteByID(_ context.Context, ar
12081208
return sql.ErrNoRows
12091209
}
12101210

1211-
func (q *fakeQuerier) UpdateWorkspaceAutostart(ctx context.Context, arg database.UpdateWorkspaceAutostartParams) error {
1211+
func (q *fakeQuerier) UpdateWorkspaceAutostart(_ context.Context, arg database.UpdateWorkspaceAutostartParams) error {
12121212
q.mutex.Lock()
12131213
defer q.mutex.Unlock()
12141214

@@ -1224,7 +1224,7 @@ func (q *fakeQuerier) UpdateWorkspaceAutostart(ctx context.Context, arg database
12241224
return sql.ErrNoRows
12251225
}
12261226

1227-
func (q *fakeQuerier) UpdateWorkspaceAutostop(ctx context.Context, arg database.UpdateWorkspaceAutostopParams) error {
1227+
func (q *fakeQuerier) UpdateWorkspaceAutostop(_ context.Context, arg database.UpdateWorkspaceAutostopParams) error {
12281228
q.mutex.Lock()
12291229
defer q.mutex.Unlock()
12301230

coderd/workspaces.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,6 @@ func (api *api) putWorkspaceAutostart(rw http.ResponseWriter, r *http.Request) {
321321
})
322322
return
323323
}
324-
325-
return
326324
}
327325

328326
// TODO(cian): api.updateWorkspaceAutostop

coderd/workspaces_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ func TestWorkspaceBuildByName(t *testing.T) {
187187
}
188188

189189
func TestWorkspaceUpdateAutostart(t *testing.T) {
190+
t.Parallel()
190191
var dublinLoc = mustLocation(t, "Europe/Dublin")
191192

192193
testCases := []struct {
@@ -251,6 +252,7 @@ func TestWorkspaceUpdateAutostart(t *testing.T) {
251252
for _, testCase := range testCases {
252253
testCase := testCase
253254
t.Run(testCase.name, func(t *testing.T) {
255+
t.Parallel()
254256
var (
255257
ctx = context.Background()
256258
client = coderdtest.New(t, nil)

0 commit comments

Comments
 (0)