diff options
author | 2023-06-04 18:55:30 +0200 | |
---|---|---|
committer | 2023-06-04 18:55:30 +0200 | |
commit | 97bc2e713a6e5b2c25869b93f5232560d7110170 (patch) | |
tree | 62d76de2c489331413cd2d53a99e0daeb762efaa /internal/timeline/indexeditems.go | |
parent | [docs] Add Repology stats (#1859) (diff) | |
download | gotosocial-97bc2e713a6e5b2c25869b93f5232560d7110170.tar.xz |
[chore] tidy + test timelines a bit better (#1865)
* [chore] tidy + test timelines a bit better
* thanks linter
Diffstat (limited to 'internal/timeline/indexeditems.go')
-rw-r--r-- | internal/timeline/indexeditems.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/timeline/indexeditems.go b/internal/timeline/indexeditems.go index ff36a66d2..c2c7a19b6 100644 --- a/internal/timeline/indexeditems.go +++ b/internal/timeline/indexeditems.go @@ -20,7 +20,8 @@ package timeline import ( "container/list" "context" - "fmt" + + "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) type indexedItems struct { @@ -84,7 +85,7 @@ func (i *indexedItems) insertIndexed(ctx context.Context, newEntry *indexedItems currentEntry.boostOfAccountID, currentPosition, ); err != nil { - return false, fmt.Errorf("insertIndexed: error calling skipInsert: %w", err) + return false, gtserror.Newf("error calling skipInsert: %w", err) } else if skip { // We don't need to insert this at all, // so we can safely bail. |