fix: resolve lint issues — rename api package, fix nolint directives
check / check (push) Failing after 1m3s
check / check (push) Failing after 1m3s
This commit is contained in:
1 parent
88af2ea98f
commit
d2bc467581
4 files changed
+6
-6
No files matched your search
@@ -47,7 +47,7 @@ func (b *Base) GetDB() *sql.DB {
|
||||
}
|
||||
|
||||
// GetUserLookup returns the DB as a UserLookup if it implements the interface.
|
||||
func (b *Base) GetUserLookup() UserLookup { //nolint:ireturn // interface return is intentional
|
||||
func (b *Base) GetUserLookup() UserLookup { //nolint:ireturn
|
||||
if ul, ok := b.db.(UserLookup); ok {
|
||||
return ul
|
||||
}
|
||||
@@ -56,7 +56,7 @@ func (b *Base) GetUserLookup() UserLookup { //nolint:ireturn // interface return
|
||||
}
|
||||
|
||||
// GetChannelLookup returns the DB as a ChannelLookup if it implements the interface.
|
||||
func (b *Base) GetChannelLookup() ChannelLookup { //nolint:ireturn // interface return is intentional
|
||||
func (b *Base) GetChannelLookup() ChannelLookup { //nolint:ireturn
|
||||
if cl, ok := b.db.(ChannelLookup); ok {
|
||||
return cl
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user