mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-02-03 00:38:40 +08:00
remove no need empty line (#29)
* rebase upstream * rebase * trim no need line * trim no need line * trim no need line * trim no need line Co-authored-by: kingxt <dream4kingxt@163.com>
This commit is contained in:
parent
af7acdd843
commit
89f3712347
@ -98,6 +98,7 @@ func ApiFormat(path string, printToConsole bool) error {
|
|||||||
_, err := fmt.Print(result)
|
_, err := fmt.Print(result)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
result = strings.TrimSpace(result)
|
||||||
return ioutil.WriteFile(path, []byte(result), os.ModePerm)
|
return ioutil.WriteFile(path, []byte(result), os.ModePerm)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user