diff --git a/lib/db/feature-toggle-store.js b/lib/db/feature-toggle-store.js index 759febc83e..9ac416cd83 100644 --- a/lib/db/feature-toggle-store.js +++ b/lib/db/feature-toggle-store.js @@ -66,36 +66,28 @@ class FeatureToggleStore { _createFeature (data) { return this.db('features') .insert(this.eventDataToRow(data)) - .catch(err => { - logger.error('Could not insert feature, error was: ', err); - }); + .catch(err => logger.error('Could not insert feature, error was: ', err)); } _updateFeature (data) { return this.db('features') .where({ name: data.name }) .update(this.eventDataToRow(data)) - .catch(err => { - logger.error('Could not update feature, error was: ', err); - }); + .catch(err => logger.error('Could not update feature, error was: ', err)); } _archiveFeature (data) { return this.db('features') .where({ name: data.name }) .update({ archived: 1 }) - .catch(err => { - logger.error('Could not archive feature, error was: ', err); - }); + .catch(err => logger.error('Could not archive feature, error was: ', err)); } _reviveFeature (data) { return this.db('features') .where({ name: data.name }) .update({ archived: 0, enabled: 0 }) - .catch(err => { - logger.error('Could not archive feature, error was: ', err); - }); + .catch(err => logger.error('Could not archive feature, error was: ', err)); } }; diff --git a/lib/db/strategy-store.js b/lib/db/strategy-store.js index b56864d9e8..d310352443 100644 --- a/lib/db/strategy-store.js +++ b/lib/db/strategy-store.js @@ -59,9 +59,7 @@ class StrategyStore { _createStrategy (data) { this.db(TABLE) .insert(this.eventDataToRow(data)) - .catch(err => { - logger.error('Could not insert strategy, error was: ', err); - }); + .catch(err => logger.error('Could not insert strategy, error was: ', err)); } };