diff options
author | xuri <xuri.me@gmail.com> | 2020-11-04 01:24:26 +0000 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2020-11-04 01:24:26 +0000 |
commit | cdc57db3b3758781bd053228bfb32879b3adf3de (patch) | |
tree | 0878500606a8861fe5097afe27e3fe1863d98166 /rows.go | |
parent | c82a185af83b8b3934efcb0b227e494a18f426ea (diff) |
Fix race conditions
Diffstat (limited to 'rows.go')
-rw-r--r-- | rows.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -290,10 +290,10 @@ func (f *File) GetRowHeight(sheet string, row int) (float64, error) { // after deserialization of xl/sharedStrings.xml. func (f *File) sharedStringsReader() *xlsxSST { var err error - wbPath := f.getWorkbookPath() - relPath := strings.TrimPrefix(filepath.Join(filepath.Dir(wbPath), "_rels", filepath.Base(wbPath)+".rels"), string(filepath.Separator)) f.Lock() defer f.Unlock() + wbPath := f.getWorkbookPath() + relPath := strings.TrimPrefix(filepath.Join(filepath.Dir(wbPath), "_rels", filepath.Base(wbPath)+".rels"), string(filepath.Separator)) if f.SharedStrings == nil { var sharedStrings xlsxSST ss := f.readXML("xl/sharedStrings.xml") |