mirror of
https://github.com/thelounge/thelounge.git
synced 2026-03-14 14:35:50 +01:00
Run format after updating to prettier 2.0
This commit is contained in:
parent
a46c9e8403
commit
881b3eda19
138 changed files with 584 additions and 631 deletions
|
|
@ -66,10 +66,7 @@ const changelogPath = path.resolve(__dirname, "..", "CHANGELOG.md");
|
|||
|
||||
if (token === undefined) {
|
||||
try {
|
||||
token = fs
|
||||
.readFileSync(path.resolve(__dirname, "./github_token.txt"))
|
||||
.toString()
|
||||
.trim();
|
||||
token = fs.readFileSync(path.resolve(__dirname, "./github_token.txt")).toString().trim();
|
||||
} catch (e) {
|
||||
log.error(`Environment variable ${colors.bold("CHANGELOG_TOKEN")} must be set.`);
|
||||
log.error(`Alternative create ${colors.bold("scripts/github_token.txt")} file.`);
|
||||
|
|
|
|||
|
|
@ -63,8 +63,5 @@ log.info(
|
|||
);
|
||||
|
||||
function getPrettyDate() {
|
||||
return new Date()
|
||||
.toISOString()
|
||||
.split(".")[0]
|
||||
.replace("T", " ");
|
||||
return new Date().toISOString().split(".")[0].replace("T", " ");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
"use strict";
|
||||
|
||||
module.exports = function() {
|
||||
return function() {};
|
||||
module.exports = function () {
|
||||
return function () {};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue