fix: resolve wsl_v5, lll, noinlineerr, and gosec lint issues
This commit is contained in:
1 parent
db3b0bfee1
commit
e0da78f17c
4 files changed
+14
-4
No files matched your search
@@ -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