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