Skip to content

Commit baaf47e

Browse files
committed
chore: cloudcmd: actions: lint ☘️
1 parent 0d61a97 commit baaf47e

File tree

5 files changed

+7
-14
lines changed

5 files changed

+7
-14
lines changed

client/dom/current-file.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,7 @@ module.exports.isCurrentIsDir = (currentFile) => {
305305
module.exports.getCurrentType = (currentFile) => {
306306
const current = currentFile || DOM.getCurrentFile();
307307
const el = DOM.getByDataName('js-type', current);
308-
const type = el
309-
.className
308+
const type = el.className
310309
.split(' ')
311310
.pop();
312311

client/modules/edit-file.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ module.exports.show = async (options) => {
6161

6262
Images.show.load();
6363

64-
CloudCmd
65-
.Edit
64+
CloudCmd.Edit
6665
.getEditor()
6766
.setOption('keyMap', 'default');
6867

@@ -78,8 +77,7 @@ module.exports.show = async (options) => {
7877

7978
setMsgChanged(name);
8079

81-
CloudCmd
82-
.Edit
80+
CloudCmd.Edit
8381
.getEditor()
8482
.setValueFirst(path, data)
8583
.setModeForPath(name)
@@ -131,8 +129,7 @@ function setMenu(event) {
131129
},
132130

133131
afterClick: () => {
134-
CloudCmd
135-
.Edit
132+
CloudCmd.Edit
136133
.getEditor()
137134
.focus();
138135
},

client/modules/edit-names-vim.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ module.exports.init = async () => {
2121
module.exports.show = () => {
2222
Events.addKey(listener);
2323

24-
CloudCmd
25-
.EditNames
24+
CloudCmd.EditNames
2625
.show(ConfigView)
2726
.getEditor()
2827
.setKeyMap('vim');

client/modules/edit-names.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ module.exports.show = (options) => {
4444

4545
DOM.Events.addKey(keyListener);
4646

47-
CloudCmd
48-
.Edit
47+
CloudCmd.Edit
4948
.getEditor()
5049
.setValueFirst('edit-names', names)
5150
.setMode()

client/modules/view/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,7 @@ function viewImage(path, prefixURL) {
263263
title: encode(basename(path)),
264264
});
265265

266-
const names = Info
267-
.files
266+
const names = Info.files
268267
.map(DOM.getCurrentPath)
269268
.filter(isSupportedImage);
270269

0 commit comments

Comments
 (0)