File tree 1 file changed +4
-8
lines changed
1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -253,24 +253,20 @@ func (f *File) addSheetPicture(sheet string, rID int) {
253
253
254
254
// countDrawings provides a function to get drawing files count storage in the
255
255
// folder xl/drawings.
256
- func (f * File ) countDrawings () int {
257
- c1 , c2 := 0 , 0
256
+ func (f * File ) countDrawings () (count int ) {
258
257
f .Pkg .Range (func (k , v interface {}) bool {
259
258
if strings .Contains (k .(string ), "xl/drawings/drawing" ) {
260
- c1 ++
259
+ count ++
261
260
}
262
261
return true
263
262
})
264
263
f .Drawings .Range (func (rel , value interface {}) bool {
265
264
if strings .Contains (rel .(string ), "xl/drawings/drawing" ) {
266
- c2 ++
265
+ count ++
267
266
}
268
267
return true
269
268
})
270
- if c1 < c2 {
271
- return c2
272
- }
273
- return c1
269
+ return
274
270
}
275
271
276
272
// addDrawingPicture provides a function to add picture by given sheet,
You can’t perform that action at this time.
0 commit comments