style: fix code formatting in CapacitorPlatformService
- Split long condition across multiple lines for better readability - Applied by ESLint auto-fix
This commit is contained in:
@@ -323,7 +323,10 @@ export class CapacitorPlatformService
|
|||||||
const openMsg =
|
const openMsg =
|
||||||
openErr instanceof Error ? openErr.message : String(openErr);
|
openErr instanceof Error ? openErr.message : String(openErr);
|
||||||
// If open fails on a newly created connection, treat as "already exists" case
|
// If open fails on a newly created connection, treat as "already exists" case
|
||||||
if (openMsg.includes("does not exist") || openMsg.includes("already exists")) {
|
if (
|
||||||
|
openMsg.includes("does not exist") ||
|
||||||
|
openMsg.includes("already exists")
|
||||||
|
) {
|
||||||
this.connLog(
|
this.connLog(
|
||||||
`create succeeded but open() failed: ${openMsg} → treating as 'already exists'`,
|
`create succeeded but open() failed: ${openMsg} → treating as 'already exists'`,
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user