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

chore: make lint happy

This commit is contained in:
源文雨
2025-05-06 17:45:49 +09:00
parent 4dea62ceaa
commit c6b0eac317
4 changed files with 6 additions and 6 deletions

View File

@@ -283,7 +283,7 @@ func (r *WPInline) String() string {
return "![inln?](unknown)"
}
func (r *WPInline) copymedia(to *Docx) *WPInline {
func (r *WPInline) copymedia(to *Docx) *WPInline { //nolint: dupl
if r.Graphic.GraphicData.Pic != nil {
if r.Graphic.GraphicData.Pic.BlipFill != nil {
tgt, err := r.file.ReferTarget(r.Graphic.GraphicData.Pic.BlipFill.Blip.Embed)
@@ -1373,7 +1373,7 @@ func (r *WPAnchor) String() string {
return "![anch?](unknown)"
}
func (r *WPAnchor) copymedia(to *Docx) *WPAnchor {
func (r *WPAnchor) copymedia(to *Docx) *WPAnchor { //nolint: dupl
if r.Graphic.GraphicData.Pic != nil {
if r.Graphic.GraphicData.Pic.BlipFill != nil {
tgt, err := r.file.ReferTarget(r.Graphic.GraphicData.Pic.BlipFill.Blip.Embed)