Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6129dd9

Browse files
committed
fix: appease the linter gods
1 parent1469e4b commit6129dd9

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
returnsql.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
deferq.mutex.Unlock()
12141214

@@ -1224,7 +1224,7 @@ func (q *fakeQuerier) UpdateWorkspaceAutostart(ctx context.Context, arg database
12241224
returnsql.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
deferq.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
funcTestWorkspaceUpdateAutostart(t*testing.T) {
190+
t.Parallel()
190191
vardublinLoc=mustLocation(t,"Europe/Dublin")
191192

192193
testCases:= []struct {
@@ -251,6 +252,7 @@ func TestWorkspaceUpdateAutostart(t *testing.T) {
251252
for_,testCase:=rangetestCases {
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)

[8]ページ先頭

©2009-2025 Movatter.jp