native.ts: Fix profiledir != "auto" not working on windows

Somehow () => profiledir works on linux but doesn't on windows. () =>
profiledir doesn't make sense anyway.
This commit is contained in:
glacambre 2019-03-01 12:59:12 +01:00
parent 11329c770a
commit 689994eda5
No known key found for this signature in database
GPG key ID: B9625DB1767553AC

View file

@ -546,7 +546,7 @@ export function getProfileName() {
export async function getProfileDir() { export async function getProfileDir() {
let profiledir = config.get("profiledir") let profiledir = config.get("profiledir")
if (profiledir != "auto") return Promise.resolve(() => profiledir) if (profiledir != "auto") return Promise.resolve(profiledir)
return getProfile().then(p => p.absolutePath) return getProfile().then(p => p.absolutePath)
} }