Skip to content

Commit b989fe9

Browse files
committed
chore: lint
1 parent c81325e commit b989fe9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/expo-plugins/index.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,12 @@ const withIntercomAndroid: ConfigPlugin<IntercomPluginProps> = (
9393
const appDelegate: ConfigPlugin<IntercomPluginProps> = (_config, props) =>
9494
withAppDelegate(_config, (config) => {
9595
let stringContents = config.modResults.contents;
96-
const swiftAppDelegate = IOSConfig.Paths.getAppDelegate(config.modRequest.projectRoot).language==="swift"
97-
stringContents = swiftAppDelegate ? addImports(stringContents, ['Intercom'],false) : addObjcImports(stringContents, ['<IntercomModule.h>']);
96+
const swiftAppDelegate =
97+
IOSConfig.Paths.getAppDelegate(config.modRequest.projectRoot).language ===
98+
'swift';
99+
stringContents = swiftAppDelegate
100+
? addImports(stringContents, ['Intercom'], false)
101+
: addObjcImports(stringContents, ['<IntercomModule.h>']);
98102

99103
// Remove previous code
100104
stringContents = stringContents.replace(

0 commit comments

Comments
 (0)