fix linter warnings

This commit is contained in:
Varun Gupta 2023-12-02 20:09:10 -05:00 committed by Varun Gupta
parent ec9eb0dd60
commit 972d158161
2 changed files with 204 additions and 204 deletions

View File

@ -1,4 +1,4 @@
const error = require('./error')
const error = require('./error');
const logger = require('../logger').ddns;
const internalAccessList = require('../internal/access-list');
const utils = require('./utils');
@ -55,7 +55,7 @@ const ddnsResolver = {
ddnsResolver._cache.set(address, [resolvedIP, Date.now()]);
return resolvedIP;
})
.catch((_error) => {
.catch((/*error*/) => {
// return input address in case of failure
return address;
});
@ -211,10 +211,10 @@ const ddnsResolver = {
_getAccessLists: () => {
const fakeAccess = {
can: (capabilityStr) => {
can: (/*role*/) => {
return Promise.resolve({
permission_visibility: 'all'
})
});
}
};