diff --git a/.gitignore b/.gitignore index 5177fc83..1dbbe0d9 100644 --- a/.gitignore +++ b/.gitignore @@ -3,13 +3,11 @@ .DS_Store build/ - # node.js # node_modules/ npm-debug.log yarn-error.log - # Xcode # @@ -29,7 +27,6 @@ DerivedData *.ipa *.xcuserstate project.xcworkspace - # Android/IntelliJ # @@ -39,7 +36,6 @@ gradle/ local.properties *.iml - # BUCK buck-out/ \.buckd/ diff --git a/src/authenticate.ios.js b/src/authenticate.ios.js index 1630bdde..8ebc0954 100644 --- a/src/authenticate.ios.js +++ b/src/authenticate.ios.js @@ -6,8 +6,11 @@ const { ReactNativeFingerprintScanner } = NativeModules; export default ({ description = ' ', fallbackEnabled = true }) => { return new Promise((resolve, reject) => { ReactNativeFingerprintScanner.authenticate(description, fallbackEnabled, error => { - if (error) return reject(createError(error.message)); - resolve(true); + if (error) { + return reject(createError(error.message)); + } + + return resolve(true); }); }); }