From 4b4d19ebbdf6e5737931a18315666c505b10c4a2 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sun, 10 Jul 2016 16:47:45 +0200 Subject: classes/BowelyzerConfig.sc: Fixing statements regarding configFilePath and path to be more exclusive. Removing unused postln. --- classes/BowelyzerConfig.sc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/classes/BowelyzerConfig.sc b/classes/BowelyzerConfig.sc index 3a3ebe6..7f49865 100644 --- a/classes/BowelyzerConfig.sc +++ b/classes/BowelyzerConfig.sc @@ -240,10 +240,8 @@ BowelyzerConfig{ path, overwriteConfigFilePath = false, writeFinished = false; - configFilePath.postln; - fileName.postln; if(fileName.isNil, { - if(configFilePath.notNil, { + if(configFilePath.notNil && (configFilePath != ""), { path = configFilePath; },{ "No configuration file defined!".error; @@ -252,8 +250,8 @@ BowelyzerConfig{ path = fileName; overwriteConfigFilePath = true; }); - if(path != "",{ - path.postln; + if(path.notNil && (path != ""), { + ("Writing configuration to file: "++path).postln; try{ configFile = File.use( path.asString, -- cgit v1.2.3-70-g09d2