default file path if not empty
This commit is contained in:
@@ -74,8 +74,8 @@ func _main() error {
|
||||
}
|
||||
|
||||
func getConfig() config {
|
||||
defaultFilepath, ok := os.LookupEnv("PTTODO_FILE")
|
||||
if !ok {
|
||||
defaultFilepath := os.Getenv("PTTODO_FILE")
|
||||
if defaultFilePath == "" {
|
||||
defaultFilepath = "./todo.yaml"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user