Skip to content

Commit 6299d0c

Browse files
committed
fix lint
Signed-off-by: Spike Curtis <spike@coder.com>
1 parent 945eed2 commit 6299d0c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

coderd/database/databasefake/databasefake.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ type rwMutex interface {
5454
// inTxMutex is a no op, since inside a transaction we are already locked.
5555
type inTxMutex struct{}
5656

57-
func (_ *inTxMutex) Lock() {}
58-
func (_ *inTxMutex) RLock() {}
59-
func (_ *inTxMutex) Unlock() {}
60-
func (_ *inTxMutex) RUnlock() {}
57+
func (inTxMutex) Lock() {}
58+
func (inTxMutex) RLock() {}
59+
func (inTxMutex) Unlock() {}
60+
func (inTxMutex) RUnlock() {}
6161

6262
// fakeQuerier replicates database functionality to enable quick testing.
6363
type fakeQuerier struct {
@@ -96,7 +96,7 @@ type data struct {
9696
func (q *fakeQuerier) InTx(fn func(database.Store) error) error {
9797
q.mutex.Lock()
9898
defer q.mutex.Unlock()
99-
return fn(&fakeQuerier{mutex: &inTxMutex{}, data: q.data})
99+
return fn(&fakeQuerier{mutex: inTxMutex{}, data: q.data})
100100
}
101101

102102
func (q *fakeQuerier) AcquireProvisionerJob(_ context.Context, arg database.AcquireProvisionerJobParams) (database.ProvisionerJob, error) {

0 commit comments

Comments
 (0)