Fix all lint/build issues on main branch (closes #13) #15

Closed
clawbot wants to merge 22 commits from fix/main-lint-issues into main
Showing only changes of commit db3b0bfee1 - Show all commits

View File

@@ -48,7 +48,7 @@ func (b *Base) GetDB() *sql.DB {
} }
// GetUserLookup returns the DB as a UserLookup if it implements the interface. // 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 { if ul, ok := b.db.(UserLookup); ok {
return ul return ul
} }
@@ -57,7 +57,7 @@ func (b *Base) GetUserLookup() UserLookup {
} }
// GetChannelLookup returns the DB as a ChannelLookup if it implements the interface. // 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 { if cl, ok := b.db.(ChannelLookup); ok {
return cl return cl
} }