mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-01 07:39:09 +00:00
fix semi colons
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
export default function stoi(val: any) {
|
||||
if (typeof val === "string") {
|
||||
return parseInt(val)
|
||||
return parseInt(val);
|
||||
}
|
||||
else {
|
||||
return val;
|
||||
|
||||
@@ -34,7 +34,7 @@ export async function logout(
|
||||
try {
|
||||
await invalidateSession(session.sessionId);
|
||||
} catch (error) {
|
||||
logger.error("Failed to invalidate session", error)
|
||||
logger.error("Failed to invalidate session", error);
|
||||
}
|
||||
|
||||
const isSecure = req.protocol === "https";
|
||||
|
||||
@@ -44,8 +44,8 @@ export default async function migration() {
|
||||
const updatedYaml = yaml.dump(rawConfig);
|
||||
fs.writeFileSync(filePath, updatedYaml, "utf8");
|
||||
} catch (error) {
|
||||
console.log("We were unable to add CORS to your config file. Please add it manually.")
|
||||
console.error(error)
|
||||
console.log("We were unable to add CORS to your config file. Please add it manually.");
|
||||
console.error(error);
|
||||
}
|
||||
|
||||
console.log("Done.");
|
||||
|
||||
Reference in New Issue
Block a user