forked from cory/tildefriends
Run prettier.
This commit is contained in:
.prettierrc.yamlREADME.md
apps
admin.json
admin
api.jsonapi
apps.jsonapps
blog.jsonblog
db
follow.jsonfollow
gg.jsongg
identity.jsonidentity
issues.jsonissues
journal.jsonjournal
sneaker.jsonsneaker
ssb.jsonssb
app.jsemojis.jsindex.htmlscript.jstf-app.jstf-compose.jstf-id-picker.jstf-message.jstf-news.jstf-profile.jstf-styles.jstf-tab-connections.jstf-tab-mentions.jstf-tab-news-feed.jstf-tab-news.jstf-tab-query.jstf-tab-search.jstf-tag.jstf-user.jstf-utils.jstribute.css
todo.jsontodo
welcome.jsonwelcome
wiki.jsonwiki
core
docs
@ -27,7 +27,8 @@ async function todo_add(list) {
|
||||
let set = new Set(names);
|
||||
set.add(list);
|
||||
names = JSON.stringify([...set].sort());
|
||||
exchanged = original === names || await g_db.exchange('files', original, names);
|
||||
exchanged =
|
||||
original === names || (await g_db.exchange('files', original, names));
|
||||
}
|
||||
return exchanged;
|
||||
}
|
||||
@ -42,7 +43,8 @@ async function todo_remove(list) {
|
||||
let set = new Set(names);
|
||||
set.delete(list);
|
||||
names = JSON.stringify([...set].sort());
|
||||
exchanged = original === names || await g_db.exchange('files', original, names);
|
||||
exchanged =
|
||||
original === names || (await g_db.exchange('files', original, names));
|
||||
}
|
||||
await g_db.remove('list:' + list);
|
||||
return exchanged;
|
||||
@ -79,4 +81,4 @@ async function main() {
|
||||
await app.setDocument(utf8Decode(getFile('index.html')));
|
||||
}
|
||||
|
||||
main();
|
||||
main();
|
||||
|
Reference in New Issue
Block a user