chore: cloudcmd: actions: lint ☘️

This commit is contained in:
coderaiser 2023-08-07 15:09:19 +00:00
parent ba7133f2e6
commit 339560fab2
9 changed files with 18 additions and 10 deletions

View file

@ -37,13 +37,13 @@ module.exports._previous = previous;
function next(index, length) {
if (index === length - 1)
return 0;
return ++index;
}
function previous(index, length) {
if (!index)
return length - 1;
return --index;
}