Skip to content

Commit

Permalink
Remove unreachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
TeeRenJing committed Oct 26, 2023
1 parent 93c643e commit fb8a7e0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions adjust.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,7 @@ func (f *File) adjustRowDimensions(sheet string, ws *xlsxWorksheet, row, offset
for i := 0; i < numOfRows; i++ {
r := &ws.SheetData.Row[i]
if newRow := r.R + offset; r.R >= row && newRow > 0 {
if err := f.adjustSingleRowDimensions(sheet, r, row, offset, false); err != nil {
return err
}
f.adjustSingleRowDimensions(sheet, r, row, offset, false)
}
if err := f.adjustSingleRowFormulas(sheet, r, row, offset, false); err != nil {
return err
Expand Down

0 comments on commit fb8a7e0

Please sign in to comment.