fix nolints

This commit is contained in:
ryanfkeepers 2023-12-08 12:51:44 -07:00
parent f21ef8ccb5
commit 3bfadd5416
4 changed files with 9 additions and 9 deletions

View File

@ -39,7 +39,7 @@ import (
var _ backupHandler[models.Channelable, models.ChatMessageable] = &mockBackupHandler{}
//nolint:unused
//lint:ignore U1000 false linter issue due to generics
type mockBackupHandler struct {
channels []models.Channelable
messageIDs []string
@ -51,7 +51,7 @@ type mockBackupHandler struct {
doNotInclude bool
}
//nolint:unused
//lint:ignore U1000 false linter issue due to generics
func (bh mockBackupHandler) augmentItemInfo(
*details.GroupsInfo,
models.Channelable,
@ -125,7 +125,7 @@ func (bh mockBackupHandler) canonicalPath(
false)
}
//nolint:unused
//lint:ignore U1000 false linter issue due to generics
func (bh mockBackupHandler) getItem(
_ context.Context,
_ string,

View File

@ -95,7 +95,7 @@ func (bh channelsBackupHandler) PathPrefix(tenantID string) (path.Path, error) {
false)
}
//nolint:unused
//lint:ignore U1000 false linter issue due to generics
func (bh channelsBackupHandler) getItem(
ctx context.Context,
groupID string,
@ -105,7 +105,7 @@ func (bh channelsBackupHandler) getItem(
return bh.ac.GetChannelMessage(ctx, groupID, containerIDs[0], messageID)
}
//nolint:unused
//lint:ignore U1000 false linter issue due to generics
func (bh channelsBackupHandler) augmentItemInfo(
dgi *details.GroupsInfo,
c models.Channelable,

View File

@ -144,7 +144,7 @@ type getAndAugmentChannelMessage struct {
Err error
}
//nolint:unused
//lint:ignore U1000 false linter issue due to generics
func (m getAndAugmentChannelMessage) getItem(
_ context.Context,
_ string,
@ -157,7 +157,7 @@ func (m getAndAugmentChannelMessage) getItem(
return msg, &details.GroupsInfo{}, m.Err
}
//nolint:unused
//lint:ignore U1000 false linter issue due to generics
func (getAndAugmentChannelMessage) augmentItemInfo(*details.GroupsInfo, models.Channelable) {
// no-op
}

View File

@ -113,7 +113,7 @@ func (bh conversationsBackupHandler) PathPrefix(tenantID string) (path.Path, err
false)
}
//nolint:unused
//lint:ignore U1000 false linter issue due to generics
func (bh conversationsBackupHandler) getItem(
ctx context.Context,
groupID string,
@ -129,7 +129,7 @@ func (bh conversationsBackupHandler) getItem(
api.CallConfig{})
}
//nolint:unused
//lint:ignore U1000 false linter issue due to generics
func (bh conversationsBackupHandler) augmentItemInfo(
dgi *details.GroupsInfo,
c models.Conversationable,