Skip to content

Commit aa2961d

Browse files
committed
chore: run prettier
1 parent 9776dd1 commit aa2961d

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
@@ -64,7 +64,9 @@ async function run() {
6464
if (existsSync("./firebase.json")) {
6565
console.log("firebase.json file found. Continuing deploy.");
6666
} else {
67-
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.");
67+
console.warn(
68+
"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."
69+
);
6870
}
6971
const gacFilename = await createGacFile(googleApplicationCredentials);
7072
if (gacFilename !== googleApplicationCredentials) {

src/postOrUpdateComment.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export async function postChannelSuccessComment(
8989
let commentId;
9090
try {
9191
const comments = (await github.rest.issues.listComments(commentInfo)).data;
92-
for (let i = comments.length; i--;) {
92+
for (let i = comments.length; i--; ) {
9393
const c = comments[i];
9494
if (isCommentByBot(c)) {
9595
commentId = c.id;
@@ -111,8 +111,7 @@ export async function postChannelSuccessComment(
111111
} catch (e) {
112112
commentId = null;
113113
}
114-
}
115-
else {
114+
} else {
116115
console.log("New comment will be created.");
117116
try {
118117
await github.rest.issues.createComment(comment);

0 commit comments

Comments
 (0)