From 2d1ffd254e33d6569e4ba87ec7631d5d32d9f82d Mon Sep 17 00:00:00 2001 From: Michael O'Brien Date: Wed, 30 Aug 2023 13:21:48 +1000 Subject: [PATCH] CLEAN --- src/index.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index 1e3c561..9b7dc1e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -993,9 +993,8 @@ export class CustomMetrics { try { await this.client.send(command) return true - } catch (err) { - /* istanbul ignore next */ ;(function (err, log) { - /* istanbul ignore next */ + } catch (err) /* istanbul ignore next */ { + ;(function (err, log) { // SDK V3 puts the code in err.name (Ugh!) let code = err.code || err.name if (code == 'ConditionalCheckFailedException') {