mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
lint: Fix some straightforward ESLint errors
This commit is contained in:
parent
4b4b685bba
commit
54a3dbb9a0
4 changed files with 131 additions and 125 deletions
|
@ -391,9 +391,9 @@ const defaultResponseRefs = {
|
|||
|
||||
// convert to a dictionary of operation objects
|
||||
const operations = {};
|
||||
for (const resource in resources) {
|
||||
for (const action in resources[resource]) {
|
||||
const {operationId, responseSchema, ...operation} = resources[resource][action];
|
||||
for (const [resource, actions] of Object.entries(resources)) {
|
||||
for (const [action, spec] of Object.entries(actions)) {
|
||||
const {operationId, responseSchema, ...operation} = spec;
|
||||
|
||||
// add response objects
|
||||
const responses = {...defaultResponseRefs};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue