From 3ec3c799405bddbb283cb6caead631d22096ce01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Herna=CC=81ndez=20Jaso?= Date: Wed, 14 Jun 2017 17:28:08 +0200 Subject: [PATCH] Make isNativeClientAvailable a boolean function Currently calling this function can throw undefined, so we end up writing something like . IMHO this should return either true or false. --- lib/Sentry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Sentry.js b/lib/Sentry.js index cfb29c535a..530c21377f 100644 --- a/lib/Sentry.js +++ b/lib/Sentry.js @@ -85,7 +85,7 @@ export class Sentry { } static isNativeClientAvailable() { - return Sentry._nativeClient; + return Sentry._nativeClient !== undefined; } static crash() {