Browse Source

lint

gh-pages
Martin McKeaveney 5 years ago
parent
commit
45981c62ef
  1. 4
      packages/builder/src/analytics/PosthogClient.js
  2. 16
      packages/builder/src/analytics/SentryClient.js

4
packages/builder/src/analytics/PosthogClient.js

@ -21,7 +21,7 @@ export default class PosthogClient {
} }
/** /**
* Set the posthog context to the current user * Set the posthog context to the current user
* @param {String} id - unique user id * @param {String} id - unique user id
*/ */
identify(id) { identify(id) {
@ -70,7 +70,7 @@ export default class PosthogClient {
} }
/** /**
* Reset posthog user back to initial state on logout. * Reset posthog user back to initial state on logout.
*/ */
logout() { logout() {
if (!this.initialised) return if (!this.initialised) return

16
packages/builder/src/analytics/SentryClient.js

@ -13,20 +13,20 @@ export default class SentryClient {
} }
} }
/** /**
* Capture an exception and send it to sentry. * Capture an exception and send it to sentry.
* @param {Error} err - JS error object * @param {Error} err - JS error object
*/ */
captureException(err) { captureException(err) {
if (!this.initalised) return if (!this.initalised) return
Sentry.captureException(err) Sentry.captureException(err)
} }
/** /**
* Identify user in sentry. * Identify user in sentry.
* @param {String} id - Unique user id * @param {String} id - Unique user id
*/ */
identify(id) { identify(id) {
if (!this.initalised) return if (!this.initalised) return

Loading…
Cancel
Save