remove unused variables

This commit is contained in:
Athou
2025-04-16 01:16:32 +02:00
parent 9d16299c5b
commit 1cec4e68b1
4 changed files with 4 additions and 5 deletions

View File

@@ -16,7 +16,8 @@
"linter": { "linter": {
"rules": { "rules": {
"correctness": { "correctness": {
"noUnusedImports": "error" "noUnusedImports": "error",
"noUnusedVariables": "error"
} }
} }
}, },

View File

@@ -50,7 +50,7 @@ const buildGetEntriesPaginatedRequest = (state: RootState, source: EntrySource,
keywords: state.entries.search, keywords: state.entries.search,
}) })
export const reloadEntries = createAppAsyncThunk("entries/reload", (arg, thunkApi) => { export const reloadEntries = createAppAsyncThunk("entries/reload", (_, thunkApi) => {
const state = thunkApi.getState() const state = thunkApi.getState()
thunkApi.dispatch(loadEntries({ source: state.entries.source, clearSearch: false })) thunkApi.dispatch(loadEntries({ source: state.entries.source, clearSearch: false }))
}) })

View File

@@ -28,9 +28,7 @@ import { throttle } from "throttle-debounce"
import { FeedEntry } from "./FeedEntry" import { FeedEntry } from "./FeedEntry"
export function FeedEntries() { export function FeedEntries() {
const source = useAppSelector(state => state.entries.source)
const entries = useAppSelector(state => state.entries.entries) const entries = useAppSelector(state => state.entries.entries)
const entriesTimestamp = useAppSelector(state => state.entries.timestamp)
const selectedEntryId = useAppSelector(state => state.entries.selectedEntryId) const selectedEntryId = useAppSelector(state => state.entries.selectedEntryId)
const hasMore = useAppSelector(state => state.entries.hasMore) const hasMore = useAppSelector(state => state.entries.hasMore)
const loading = useAppSelector(state => state.entries.loading) const loading = useAppSelector(state => state.entries.loading)

View File

@@ -143,7 +143,7 @@ export function ProfileMenu(props: ProfileMenuProps) {
color: "green", color: "green",
autoClose: 1000, autoClose: 1000,
}) })
} catch (error) { } catch (_) {
showNotification({ showNotification({
message: <Trans>Force fetching feeds is not yet available.</Trans>, message: <Trans>Force fetching feeds is not yet available.</Trans>,
color: "red", color: "red",