fix: sentry-plugin passing token - no need for catch

Signed-off-by: rodion <rodiongork@github.com>
This commit is contained in:
rodion
2021-10-27 11:28:58 +03:00
parent 33d7bd0baa
commit 197601f21c
+6 -10
View File
@@ -55,15 +55,11 @@ export class ProductionSentryApi implements SentryApi {
if (!this.identityApi) {
return {};
}
try {
const token = await this.identityApi.getIdToken();
return {
headers: {
authorization: `Bearer ${token}`,
},
};
} catch (e) {
return {};
}
const token = await this.identityApi.getIdToken();
return {
headers: {
authorization: `Bearer ${token}`,
},
};
}
}