소스 검색

refactor(processor): remove a useless type declaration

jvoisin 1 년 전
부모
커밋
7edfcc3cf7
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 4
      internal/reader/processor/reading_time.go

+ 1 - 4
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"},