Skip to content

Commit 403aa7b

Browse files
committed
Trim cli config values
Just in case they were written manually.
1 parent c02fd55 commit 403aa7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/storage.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -485,8 +485,8 @@ export class Storage {
485485
const tokenPath = this.getSessionTokenPath(label)
486486
const [url, token] = await Promise.allSettled([fs.readFile(urlPath, "utf8"), fs.readFile(tokenPath, "utf8")])
487487
return {
488-
url: url.status === "fulfilled" ? url.value : "",
489-
token: token.status === "fulfilled" ? token.value : "",
488+
url: url.status === "fulfilled" ? url.value.trim() : "",
489+
token: token.status === "fulfilled" ? token.value.trim() : "",
490490
}
491491
}
492492

0 commit comments

Comments
 (0)