summaryrefslogtreecommitdiffstats
path: root/lib/api/decodeConfig.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-04-27 10:38:54 +0200
committerSamy Pessé <samypesse@gmail.com>2016-04-27 10:38:54 +0200
commitb05eb8440b59db6d39ae06712ddda5651786e00a (patch)
tree1354043c55fccf0e114ec84307c23afa59ff340d /lib/api/decodeConfig.js
parentf4de7748f596a060e9a59df0447315b59d7c47de (diff)
downloadgitbook-b05eb8440b59db6d39ae06712ddda5651786e00a.zip
gitbook-b05eb8440b59db6d39ae06712ddda5651786e00a.tar.gz
gitbook-b05eb8440b59db6d39ae06712ddda5651786e00a.tar.bz2
Don;t log deprecation warning for own logic
Diffstat (limited to 'lib/api/decodeConfig.js')
-rw-r--r--lib/api/decodeConfig.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/api/decodeConfig.js b/lib/api/decodeConfig.js
index 886ba45..351ed05 100644
--- a/lib/api/decodeConfig.js
+++ b/lib/api/decodeConfig.js
@@ -9,6 +9,10 @@ var Config = require('../models/config');
*/
function decodeGlobal(config, result) {
var values = result.values;
+
+ delete values.generator;
+ delete values.output;
+
return Config.updateValues(config, values);
}