Skip to content

Commit ccd67cc

Browse files
committed
fix: appease the linter gods
1 parent 3b4664c commit ccd67cc

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
@@ -1210,7 +1210,7 @@ func (q *fakeQuerier) UpdateProvisionerJobWithCompleteByID(_ context.Context, ar
12101210
return sql.ErrNoRows
12111211
}
12121212

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

@@ -1226,7 +1226,7 @@ func (q *fakeQuerier) UpdateWorkspaceAutostart(ctx context.Context, arg database
12261226
return sql.ErrNoRows
12271227
}
12281228

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

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)