Skip to content

Commit 961cbea

Browse files
committedDec 30, 2021
xo cleanup
1 parent 8c37be7 commit 961cbea

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed
 

‎index.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,12 @@ function process(input) {
4040
}
4141

4242
function fi(filter, output) {
43-
const filterSplit = filter.split(' ')
44-
for (const filter of filterSplit) {
45-
output = alfy.matches(filter, output, 'match');
46-
}
47-
return output
43+
const filterSplit = filter.split(' ');
44+
for (const filter of filterSplit) {
45+
output = alfy.matches(filter, output, 'match');
46+
}
47+
48+
return output;
4849
}
4950

5051
const output = process(input);

‎src/utils.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function constructOutput(prefix, slug) {
1313
copy: slug,
1414
largetype: slug,
1515
},
16-
match: prefix,
16+
match: prefix,
1717
mods: {
1818
cmd: {
1919
subtitle: 'Paste to front most app & copy to clipboard',
@@ -27,14 +27,14 @@ export function constructOutput(prefix, slug) {
2727

2828
export function constructOutputRename(prefix, slug, options) {
2929
return {
30-
variables: {
31-
action: "rename",
32-
},
33-
title: `Rename with ${prefix}: ${slug}`,
34-
subtitle: "CAUTION: This can not be undone!",
35-
match: prefix,
36-
arg: JSON.stringify(options),
37-
};
30+
variables: {
31+
action: 'rename',
32+
},
33+
title: `Rename with ${prefix}: ${slug}`,
34+
subtitle: 'CAUTION: This can not be undone!',
35+
match: prefix,
36+
arg: JSON.stringify(options),
37+
};
3838
}
3939

4040
export function getClipboardContent() {

0 commit comments

Comments
 (0)
Failed to load comments.