chore(cloudcmd) lint

This commit is contained in:
coderaiser 2022-04-22 14:25:58 +03:00
parent 46a84c54ea
commit 6e4667aa85
4 changed files with 4 additions and 1 deletions

View file

@ -10,7 +10,7 @@ jobs:
matrix:
node-version:
- 16.x
- 17.x
- 18.x
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}

View file

@ -91,6 +91,7 @@ function setCurrent(sibling, {count, isVisual, isDelete}) {
select(current);
const position = `${sibling}Sibling`;
for (let i = 0; i < count; i++) {
const next = current[position];

View file

@ -225,6 +225,7 @@ function initConfig(options) {
return config;
const names = Object.keys(options);
for (const name of names) {
const isConfig = Boolean(config[name]);
const item = options[name];

View file

@ -19,6 +19,7 @@ async function registerSW(prefix) {
return await navigator.serviceWorker.register(`${prefix}/sw.js`);
}
async function unregisterSW(prefix) {
const reg = await registerSW(prefix);
reg?.unregister(prefix);