Skip to content

Commit 88f3339

Browse files
committed
chore(lint): enable and fix no-unused-vars
handleNotifyPush was not called at all Signed-off-by: Max <max@nextcloud.com>
1 parent 2dc2689 commit 88f3339

3 files changed

Lines changed: 0 additions & 15 deletions

File tree

.eslintrc.cjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ module.exports = {
1818
}
1919
],
2020
rules: {
21-
'@typescript-eslint/no-unused-vars': ['off'],
2221
'import/no-unresolved': [1, { ignore: ['\\.svg\\?raw$'] }],
2322
},
2423
}

src/services/PollingBackend.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -133,19 +133,6 @@ class PollingBackend {
133133
this.#pollActive = false
134134
}
135135

136-
handleNotifyPush({
137-
messageType: _,
138-
messageBody,
139-
}: {
140-
messageType: unknown
141-
messageBody: { documentId: number; response: PollData }
142-
}) {
143-
if (messageBody.documentId !== this.#connection.documentId) {
144-
return
145-
}
146-
this._handleResponse({ data: messageBody.response })
147-
}
148-
149136
_handleResponse({ data }: { data: PollData }) {
150137
const { document, sessions } = data
151138
this.#fetchRetryCounter = 0

src/services/WebdavClient.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
davGetClient,
77
davGetDefaultPropfind,
88
davResultToNode,
9-
davRootPath,
109
} from '@nextcloud/files'
1110
import type { FileStat, ResponseDataDetailed } from 'webdav'
1211
import type { Node } from '@nextcloud/files'

0 commit comments

Comments
 (0)