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

Commitccd67cc

Browse files
committed
fix: appease the linter gods
1 parent3b4664c commitccd67cc

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

@@ -1226,7 +1226,7 @@ func (q *fakeQuerier) UpdateWorkspaceAutostart(ctx context.Context, arg database
12261226
returnsql.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
deferq.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
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