Skip to content
Snippets Groups Projects
Unverified Commit 2232f654 authored by Slonk A. Zoid's avatar Slonk A. Zoid
Browse files

use more concise syntax for env var checking

parent 1fa92ad7
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ export type IWebFinger = {
const urlRegex = /^https?:\/\//;
const mRegex = /^([^@]+)@(.*)/;
const defaultProtocol = process.env.MISSKEY_WEBFINGER_USE_HTTP && process.env.MISSKEY_WEBFINGER_USE_HTTP.toLowerCase() === 'true' ? 'http' : 'https';
const defaultProtocol = process.env.MISSKEY_WEBFINGER_USE_HTTP?.toLowerCase() === 'true' ? 'http' : 'https';
@Injectable()
export class WebfingerService {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment