From 74f8a74ecf8284fd4182cabab797f17bb18e7032 Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Sat, 15 Jul 2017 01:35:36 +0100 Subject: Added Makefile -- gofmt --- config.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'config.go') diff --git a/config.go b/config.go index 38ce531..970c49c 100644 --- a/config.go +++ b/config.go @@ -29,7 +29,7 @@ func ReadGlobalConfig(fname string) *SCORSHmaster { } fmt.Printf("%s", cfg) - + if cfg.Logfile != "" { f, err := os.OpenFile(cfg.Logfile, os.O_APPEND|os.O_CREATE|os.O_RDWR, 0600) if err != nil { @@ -40,7 +40,7 @@ func ReadGlobalConfig(fname string) *SCORSHmaster { } if cfg.LogPrefix != "" { - log.SetPrefix(cfg.LogPrefix+ " ") + log.SetPrefix(cfg.LogPrefix + " ") } // If the user has not set a spooldir, crash loudly @@ -59,4 +59,3 @@ func ReadGlobalConfig(fname string) *SCORSHmaster { return cfg } - -- cgit v1.2.3