Skip to content

Commit

Permalink
add: 生成的文件尽量保持一致
Browse files Browse the repository at this point in the history
  • Loading branch information
cyz-home committed Nov 8, 2023
1 parent 221a6bc commit 1054b15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion console/commands/protoc.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ func genProtoTag(out string) {
fileNewStr = append(fileNewStr, newStr...)
}

defer os.WriteFile(file.Path, fileNewStr, 0760)
defer os.WriteFile(file.Path, []byte(strings.TrimSpace(string(fileNewStr))), 0760)
}
}
}
Expand Down

0 comments on commit 1054b15

Please sign in to comment.