From dfb944e37178a5917f1daba83373d8d22de0b813 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Fri, 23 Dec 2016 17:15:23 +0700 Subject: [PATCH] Remove unnecessary empty objects --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 24bbc99..d4eae09 100644 --- a/src/index.js +++ b/src/index.js @@ -10,7 +10,7 @@ class Onionoo { // Constructor returns a new object so instance properties are private constructor(options = {}) { // Set default options - this.options = Object.assign({}, { + this.options = Object.assign({ baseUrl: 'https://onionoo.torproject.org', endpoints: [ 'summary', @@ -22,7 +22,7 @@ class Onionoo { ] }, options); if (options.cache !== false) { - this.options.cache = cacheManager.caching(Object.assign({}, { + this.options.cache = cacheManager.caching(Object.assign({ store: 'memory', max: 500 }, options.cache));