1
0
mirror of https://github.com/fumiama/go-docx.git synced 2026-06-04 23:30:25 +08:00

🎨 改进代码样式 (#40)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2024-09-25 00:30:44 +09:00
committed by GitHub
parent 8d5f632f73
commit f7d29bb5c3

View File

@@ -212,17 +212,11 @@ type APITableBorderColors struct {
}
func (tbc *APITableBorderColors) applyDefault() {
tbcR := reflect.ValueOf(tbc).Elem()
for i := 0; i < tbcR.NumField(); i++ {
if tbcR.Field(i).IsZero() {
tbcR.Field(i).SetString("#000000")
}
}
}