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:
committed by
GitHub
parent
8d5f632f73
commit
f7d29bb5c3
@@ -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")
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user