From bcb9d3996231410804cc90c85c04f63e609ba8cf Mon Sep 17 00:00:00 2001 From: jvoisin Date: Wed, 18 Jun 2025 22:28:43 +0200 Subject: [PATCH] refactor(processor): remove a useless type declaration --- internal/reader/processor/reading_time.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/internal/reader/processor/reading_time.go b/internal/reader/processor/reading_time.go index 8061bea0..3d0a3cda 100644 --- a/internal/reader/processor/reading_time.go +++ b/internal/reader/processor/reading_time.go @@ -17,13 +17,10 @@ func updateEntryReadingTime(store *storage.Storage, feed *model.Feed, entry *mod return } - // Define a type for watch time fetching functions - type watchTimeFetcher func(string) (int, error) - // Define watch time fetching scenarios watchTimeScenarios := []struct { shouldFetch func(*model.Entry) bool - fetchFunc watchTimeFetcher + fetchFunc func(string) (int, error) platform string }{ {shouldFetchYouTubeWatchTimeForSingleEntry, fetchYouTubeWatchTimeForSingleEntry, "YouTube"},