fix: resolve wsl_v5, lll, noinlineerr, and gosec lint issues
This commit is contained in:
@@ -56,8 +56,11 @@ func (b *Base) GetUserLookup() UserLookup { //nolint:ireturn // intentional inte
|
||||
return nil
|
||||
}
|
||||
|
||||
// GetChannelLookup returns the DB as a ChannelLookup if it implements the interface.
|
||||
func (b *Base) GetChannelLookup() ChannelLookup { //nolint:ireturn // intentional interface return for dependency inversion
|
||||
// GetChannelLookup returns the DB as a ChannelLookup
|
||||
// if it implements the interface.
|
||||
//
|
||||
//nolint:ireturn // intentional interface return for dependency inversion
|
||||
func (b *Base) GetChannelLookup() ChannelLookup {
|
||||
if cl, ok := b.db.(ChannelLookup); ok {
|
||||
return cl
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user