Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Commit 439e5c3

Browse files
authored
Merge branch 'main' into renovate/js-minor-and-patch
2 parents 8d28bed + 5dbd2de commit 439e5c3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/util/index.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,16 @@ export async function readSettingsJson(filePath: string): Promise<{
151151
apiKey: null | string
152152
workspaceId: null | string
153153
}> {
154+
if (!(await fileExists(filePath))) {
155+
return {
156+
content: '',
157+
email: null,
158+
installationIds: null,
159+
apiKey: null,
160+
workspaceId: null,
161+
}
162+
}
163+
154164
const content = await fs.readFile(filePath, 'utf8')
155165

156166
let email: null | string = null

0 commit comments

Comments
 (0)