mirror of
https://github.com/miniflux/v2.git
synced 2025-06-27 16:36:00 +00:00
refactor(processor): remove a useless type declaration
This commit is contained in:
parent
fe4b00b9f8
commit
7edfcc3cf7
1 changed files with 1 additions and 4 deletions
|
@ -17,13 +17,10 @@ func updateEntryReadingTime(store *storage.Storage, feed *model.Feed, entry *mod
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Define a type for watch time fetching functions
|
|
||||||
type watchTimeFetcher func(string) (int, error)
|
|
||||||
|
|
||||||
// Define watch time fetching scenarios
|
// Define watch time fetching scenarios
|
||||||
watchTimeScenarios := []struct {
|
watchTimeScenarios := []struct {
|
||||||
shouldFetch func(*model.Entry) bool
|
shouldFetch func(*model.Entry) bool
|
||||||
fetchFunc watchTimeFetcher
|
fetchFunc func(string) (int, error)
|
||||||
platform string
|
platform string
|
||||||
}{
|
}{
|
||||||
{shouldFetchYouTubeWatchTimeForSingleEntry, fetchYouTubeWatchTimeForSingleEntry, "YouTube"},
|
{shouldFetchYouTubeWatchTimeForSingleEntry, fetchYouTubeWatchTimeForSingleEntry, "YouTube"},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue