Skip to content

Commit 087bd20

Browse files
refactor: fix linter
1 parent bc31fac commit 087bd20

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

coderd/prebuilds/noop.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ var _ ReconciliationOrchestrator = NoopReconciler{}
3838

3939
type AGPLPrebuildClaimer struct{}
4040

41-
func (c AGPLPrebuildClaimer) Claim(context.Context, uuid.UUID, string, uuid.UUID) (*uuid.UUID, error) {
41+
func (AGPLPrebuildClaimer) Claim(context.Context, uuid.UUID, string, uuid.UUID) (*uuid.UUID, error) {
4242
// Not entitled to claim prebuilds in AGPL version.
4343
return nil, ErrNoClaimablePrebuiltWorkspaces
4444
}
4545

46-
func (c AGPLPrebuildClaimer) Initiator() uuid.UUID {
46+
func (AGPLPrebuildClaimer) Initiator() uuid.UUID {
4747
return uuid.Nil
4848
}
4949

coderd/workspaces.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -886,8 +886,8 @@ func claimPrebuild(ctx context.Context, claimer prebuilds.Claimer, db database.S
886886

887887
lookup, err := db.GetWorkspaceByID(prebuildsCtx, *claimedID)
888888
if err != nil {
889-
logger.Error(ctx, "unable to find claimed workspace by ID", slog.Error(err), slog.F("claimed_prebuild_id", (*claimedID).String()))
890-
return nil, xerrors.Errorf("find claimed workspace by ID %q: %w", (*claimedID).String(), err)
889+
logger.Error(ctx, "unable to find claimed workspace by ID", slog.Error(err), slog.F("claimed_prebuild_id", claimedID.String()))
890+
return nil, xerrors.Errorf("find claimed workspace by ID %q: %w", claimedID.String(), err)
891891
}
892892
return &lookup, nil
893893
}

enterprise/coderd/prebuilds/claim.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func (c EnterpriseClaimer) Claim(
4646
return &result.ID, nil
4747
}
4848

49-
func (_ EnterpriseClaimer) Initiator() uuid.UUID {
49+
func (EnterpriseClaimer) Initiator() uuid.UUID {
5050
return prebuilds.SystemUserID
5151
}
5252

0 commit comments

Comments
 (0)