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 5fad27ff4c - Show all commits

View File

@@ -199,7 +199,9 @@ func (s *Database) PollMessages(ctx context.Context, userID string, afterTS stri
}
// GetMessagesBefore returns channel messages before a given timestamp (for history scrollback).
func (s *Database) GetMessagesBefore(ctx context.Context, target string, beforeTS string, limit int) ([]MessageInfo, error) {
func (s *Database) GetMessagesBefore(
ctx context.Context, target string, beforeTS string, limit int,
) ([]MessageInfo, error) {
if limit <= 0 {
limit = 50
}
@@ -257,7 +259,9 @@ func (s *Database) GetMessagesBefore(ctx context.Context, target string, beforeT
}
// GetDMsBefore returns DMs between two users before a given timestamp.
func (s *Database) GetDMsBefore(ctx context.Context, userA, userB string, beforeTS string, limit int) ([]MessageInfo, error) {
func (s *Database) GetDMsBefore(
ctx context.Context, userA, userB string, beforeTS string, limit int,
) ([]MessageInfo, error) {
if limit <= 0 {
limit = 50
}