From d2c06da4f04fffa8f95cea7246cbb5949e3866f2 Mon Sep 17 00:00:00 2001 From: Kanishka Date: Mon, 18 Sep 2023 11:43:05 +0200 Subject: [PATCH] test deepsource --- dot/parachain/dispute/backend.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dot/parachain/dispute/backend.go b/dot/parachain/dispute/backend.go index 2c4724daf91..6e22e121551 100644 --- a/dot/parachain/dispute/backend.go +++ b/dot/parachain/dispute/backend.go @@ -49,14 +49,12 @@ type DBBackend interface { } type syncedEarliestSession struct { - *sync.RWMutex + sync.RWMutex *parachainTypes.SessionIndex } func newSyncedEarliestSession() syncedEarliestSession { - return syncedEarliestSession{ - RWMutex: new(sync.RWMutex), - } + return syncedEarliestSession{} } type syncedRecentDisputes struct {