From 2becb927295f9f8b642614b5e2ce608da14b9f54 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 3 Jun 2017 19:28:05 +0200 Subject: Make `MaybeWriteConfig()` a private function I figured it would be a good idea to make this function and `loadConfig()` consistent. Since `loadConfig()` is private, make this one private also. --- config.go | 2 +- main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.go b/config.go index 0aa76f1..e2d2f94 100644 --- a/config.go +++ b/config.go @@ -38,7 +38,7 @@ work_type = # ADD WORK TYPE ID billable = true ` -func MaybeWriteConfig() error { +func maybeWriteConfig() error { path := xdg.FindConfig("timetasker/config.toml") if path == "" { diff --git a/main.go b/main.go index 5eae47f..00b663f 100644 --- a/main.go +++ b/main.go @@ -19,7 +19,7 @@ var config Config func main() { var err error - err = MaybeWriteConfig() + err = maybeWriteConfig() if err != nil { fmt.Println("Could not write config file") fmt.Println(err) -- cgit v1.2.3