fix: resolve ireturn lint issues

This commit is contained in:
user
2026-02-20 03:22:32 -08:00
parent a3c26c415e
commit db3b0bfee1

View File

@@ -48,7 +48,7 @@ func (b *Base) GetDB() *sql.DB {
}
// GetUserLookup returns the DB as a UserLookup if it implements the interface.
func (b *Base) GetUserLookup() UserLookup {
func (b *Base) GetUserLookup() UserLookup { //nolint:ireturn // intentional interface return for dependency inversion
if ul, ok := b.db.(UserLookup); ok {
return ul
}
@@ -57,7 +57,7 @@ func (b *Base) GetUserLookup() UserLookup {
}
// GetChannelLookup returns the DB as a ChannelLookup if it implements the interface.
func (b *Base) GetChannelLookup() ChannelLookup {
func (b *Base) GetChannelLookup() ChannelLookup { //nolint:ireturn // intentional interface return for dependency inversion
if cl, ok := b.db.(ChannelLookup); ok {
return cl
}