Skip to content

Commit 1ef0310

Browse files
committed
chore: run prettier
1 parent f4434cb commit 1ef0310

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

src/createGACFile.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ export async function createGacFile(gacInfo: string) {
2424
if (existsSync(gacInfo)) {
2525
return gacInfo;
2626
}
27-
}
28-
catch (e) {
29-
console.warn("unexpected error while validing GAC info. Interpreting provided info as credentials data.");
27+
} catch (e) {
28+
console.warn(
29+
"unexpected error while validing GAC info. Interpreting provided info as credentials data."
30+
);
3031
}
3132
const tmpFile = fileSync({ postfix: ".json" });
3233
writeSync(tmpFile.fd, gacInfo);

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ async function run() {
6565
if (existsSync("./firebase.json")) {
6666
console.log("firebase.json file found. Continuing deploy.");
6767
} else {
68-
console.warn("firebase.json file not found. If your firebase.json file is not in the root of your repo, edit the entryPoint option of this GitHub action.");
68+
console.warn(
69+
"firebase.json file not found. If your firebase.json file is not in the root of your repo, edit the entryPoint option of this GitHub action."
70+
);
6971
}
7072
const gacFilename = await createGacFile(googleApplicationCredentials);
7173
if (gacFilename !== googleApplicationCredentials) {

src/postOrUpdateComment.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export async function postChannelSuccessComment(
8585
let commentId;
8686
try {
8787
const comments = (await github.rest.issues.listComments(commentInfo)).data;
88-
for (let i = comments.length; i--;) {
88+
for (let i = comments.length; i--; ) {
8989
const c = comments[i];
9090
if (isCommentByBot(c)) {
9191
commentId = c.id;
@@ -107,8 +107,7 @@ export async function postChannelSuccessComment(
107107
} catch (e) {
108108
commentId = null;
109109
}
110-
}
111-
else {
110+
} else {
112111
console.log("New comment will be created.");
113112
try {
114113
await github.rest.issues.createComment(comment);

0 commit comments

Comments
 (0)