mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-08-04 05:33:10 +00:00
chore: cloudcmd: actions: lint ☘️
This commit is contained in:
parent
ba7133f2e6
commit
339560fab2
9 changed files with 18 additions and 10 deletions
|
|
@ -39,7 +39,7 @@ module.exports.convert = (config) => {
|
|||
function setState(state) {
|
||||
if (state)
|
||||
return ' checked';
|
||||
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@ function _refresh(to, nameIndex, res) {
|
|||
function getDir(root, dir) {
|
||||
if (root === '/')
|
||||
return dir;
|
||||
|
||||
|
||||
return root + dir;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -3,6 +3,6 @@
|
|||
module.exports = (operation, from, to) => {
|
||||
if (!to)
|
||||
return `${operation} ${from}`;
|
||||
|
||||
|
||||
return `${operation} ${from} -> ${to}`;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -194,7 +194,7 @@ function setOperations(operator) {
|
|||
function getPacker(type) {
|
||||
if (type === 'zip')
|
||||
return packZipFn;
|
||||
|
||||
|
||||
return packTarFn;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue