mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-20 09:44:26 +08:00
fix default value not set (#80)
This commit is contained in:
+5
-1
@@ -792,7 +792,11 @@ func exportUserTransaction(c *core.CliContext) error {
|
|||||||
filePath := c.String("file")
|
filePath := c.String("file")
|
||||||
fileType := c.String("type")
|
fileType := c.String("type")
|
||||||
|
|
||||||
if fileType != "" && fileType != "csv" && fileType != "tsv" {
|
if fileType == "" {
|
||||||
|
fileType = "csv"
|
||||||
|
}
|
||||||
|
|
||||||
|
if fileType != "csv" && fileType != "tsv" {
|
||||||
log.CliErrorf(c, "[user_data.exportUserTransaction] export file type is not supported")
|
log.CliErrorf(c, "[user_data.exportUserTransaction] export file type is not supported")
|
||||||
return errs.ErrNotSupported
|
return errs.ErrNotSupported
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user