Skip to content

Commit

Permalink
remove no need empty line (zeromicro#29)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
kingxt and kingxt authored Sep 1, 2020
1 parent af7acdd commit 89f3712
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/goctl/api/format/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ func ApiFormat(path string, printToConsole bool) error {
_, err := fmt.Print(result)
return err
}
result = strings.TrimSpace(result)
return ioutil.WriteFile(path, []byte(result), os.ModePerm)
}

Expand Down

0 comments on commit 89f3712

Please sign in to comment.