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

Commit 6fa99e1

Browse files
committed
CR feedback
1 parent 4326515 commit 6fa99e1

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

CodePush.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -412,13 +412,14 @@ function codePushify(options = {}) {
412412
if (!React) {
413413
throw new Error("Unable to find the 'React' module.");
414414
}
415-
if (!React.Component) {
416-
throw new Error(
417-
`Unable to find the 'Component' class, please either:
415+
}
416+
417+
if (!React.Component) {
418+
throw new Error(
419+
`Unable to find the "Component" class, please either:
418420
1. Upgrade to a newer version of React Native that supports it, or
419-
2. Call the codePush.sync API in your component instead of using the @CodePushify decorator`
420-
);
421-
}
421+
2. Call the codePush.sync API in your component instead of using the @codePush decorator`
422+
);
422423
}
423424

424425
return class CodePushComponent extends React.Component {

0 commit comments

Comments
 (0)