ssbc / chloride

MIT License
90 stars 17 forks source link

Avoid top-level return in index.js #5

Closed staltz closed 7 years ago

staltz commented 7 years ago

The diff may look large but this commit just replaces the top-level if(...)return with if(...) else {...}. It's a syntax error and is caught by some interpreters. This change is important for using Chloride in React Native.

dominictarr commented 7 years ago

sure, merging

dominictarr commented 7 years ago

merged into 2.2.5