Fix code style (#303)

Co-authored-by: ekzyis <ek@stacker.news>
This commit is contained in:
ekzyis 2023-06-05 21:07:29 +02:00 committed by GitHub
parent 369bd82a84
commit 3ee16422f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -8,11 +8,11 @@ export async function getServerSideProps ({ req, res, query: { callbackUrl, erro
const session = await getSession({ req })
// assume external by default so we will use fallback callback
let external = true;
let external = true
try {
external = isExternal(decodeURIComponent(callbackUrl))
} catch (err) {
console.error("error decoding callback:", callbackUrl, err)
console.error('error decoding callback:', callbackUrl, err)
}
if (external) {
// This is a hotfix for open redirects. See https://github.com/stackernews/stacker.news/issues/264

View File

@ -8,11 +8,11 @@ export async function getServerSideProps ({ req, res, query: { callbackUrl, erro
const session = await getSession({ req })
// assume external by default so we will use fallback callback
let external = true;
let external = true
try {
external = isExternal(decodeURIComponent(callbackUrl))
} catch (err) {
console.error("error decoding callback:", callbackUrl, err)
console.error('error decoding callback:', callbackUrl, err)
}
if (external) {
// This is a hotfix for open redirects. See https://github.com/stackernews/stacker.news/issues/264