Skip to content

Commit 0fd1a6b

Browse files
committed
[nit] don't use var
* Use `const` and `let` instead of `var`. Can be added to future lint rules for this SDK and Cordova SDK
1 parent 5195ff4 commit 0fd1a6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export default class OneSignal {
183183
static promptForPushNotificationsWithUserResponse(fallbackToSettingsOrHandler?: boolean | ((response: boolean) => void), handler?: (response: boolean) => void): void {
184184
if (!isNativeModuleLoaded(RNOneSignal)) return;
185185

186-
var fallbackToSettings = false;
186+
let fallbackToSettings = false;
187187

188188
if (typeof fallbackToSettingsOrHandler === "function") {
189189
// Method was called like promptForPushNotificationsWithUserResponse(handler: function)

0 commit comments

Comments
 (0)