From 597df613c93207b1e9f05817130f4d4d5edc240d Mon Sep 17 00:00:00 2001 From: casperlamboo Date: Mon, 9 May 2016 11:40:54 +0200 Subject: [PATCH] remove line breaks --- src/settings.js | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/settings.js b/src/settings.js index 470235c..1eb72fc 100644 --- a/src/settings.js +++ b/src/settings.js @@ -1,29 +1,25 @@ export default class { - constructor () { + constructor() { this.config = {}; } - - updateConfig (config) { - for (var i in config) { + updateConfig(config) { + for (const i in config) { this.config[i] = config[i]; } return this; } - - startCode () { + startCode() { const { startCode } = this.config; const gcode = this._subsituteVariables(startCode); return gcode; } - - endCode () { + endCode() { const { endCode } = this.config; const gcode = this._subsituteVariables(endCode); return gcode; } - - _subsituteVariables (gcode) { + _subsituteVariables(gcode) { let { temperature, bedTemperature,