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

Commitbc31fac

Browse files
refactor: make lint
1 parent663a8c0 commitbc31fac

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

‎coderd/prebuilds/api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ package prebuilds
22

33
import (
44
"context"
5-
"errors"
65

76
"github.com/google/uuid"
7+
"golang.org/x/xerrors"
88
)
99

10-
varErrNoClaimablePrebuiltWorkspaces=errors.New("no claimable prebuilt workspaces found")
10+
varErrNoClaimablePrebuiltWorkspaces=xerrors.New("no claimable prebuilt workspaces found")
1111

1212
// ReconciliationOrchestrator manages the lifecycle of prebuild reconciliation.
1313
// It runs a continuous loop to check and reconcile prebuild states, and can be stopped gracefully.

‎enterprise/coderd/prebuilds/claim.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"context"
55
"database/sql"
66
"errors"
7+
78
"github.com/google/uuid"
89
"golang.org/x/xerrors"
910

‎enterprise/coderd/prebuilds/claim_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ package prebuilds_test
33
import (
44
"context"
55
"database/sql"
6-
"errors"
76
"strings"
87
"sync/atomic"
98
"testing"
109
"time"
1110

1211
"github.com/google/uuid"
1312
"github.com/stretchr/testify/require"
13+
"golang.org/x/xerrors"
1414

1515
"github.com/coder/quartz"
1616

@@ -366,7 +366,7 @@ func TestClaimPrebuild_CheckDifferentErrors(t *testing.T) {
366366
},
367367
},
368368
"unexpected error during claim is returned": {
369-
claimingErr:errors.New("unexpected error during claim"),
369+
claimingErr:xerrors.New("unexpected error during claim"),
370370
checkFn:func(
371371
t*testing.T,
372372
ctx context.Context,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp