summaryrefslogtreecommitdiff
path: root/calcchain.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-01-09 00:20:42 +0800
committerxuri <xuri.me@gmail.com>2022-01-09 00:20:42 +0800
commit2245fccca0beb25a1bf309a1c9cbd273512f125a (patch)
tree737ced5abd6cf452662268cf1ae2b76edf8ed03c /calcchain.go
parentaf5c4d00e81b62a3f6ff6cb34a89502400552a2d (diff)
Typo fix, rename exported constants, dependencies modules and copyright update
Rename exported constants `NameSpaceDublinCoreMetadataIntiative` to `NameSpaceDublinCoreMetadataInitiative`
Diffstat (limited to 'calcchain.go')
-rw-r--r--calcchain.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/calcchain.go b/calcchain.go
index 8f5e277..44a47c9 100644
--- a/calcchain.go
+++ b/calcchain.go
@@ -1,4 +1,4 @@
-// Copyright 2016 - 2021 The excelize Authors. All rights reserved. Use of
+// Copyright 2016 - 2022 The excelize Authors. All rights reserved. Use of
// this source code is governed by a BSD-style license that can be found in
// the LICENSE file.
//
@@ -25,7 +25,7 @@ func (f *File) calcChainReader() *xlsxCalcChain {
if f.CalcChain == nil {
f.CalcChain = new(xlsxCalcChain)
- if err = f.xmlNewDecoder(bytes.NewReader(namespaceStrictToTransitional(f.readXML(dafaultXMLPathCalcChain)))).
+ if err = f.xmlNewDecoder(bytes.NewReader(namespaceStrictToTransitional(f.readXML(defaultXMLPathCalcChain)))).
Decode(f.CalcChain); err != nil && err != io.EOF {
log.Printf("xml decode error: %s", err)
}
@@ -39,7 +39,7 @@ func (f *File) calcChainReader() *xlsxCalcChain {
func (f *File) calcChainWriter() {
if f.CalcChain != nil && f.CalcChain.C != nil {
output, _ := xml.Marshal(f.CalcChain)
- f.saveFileList(dafaultXMLPathCalcChain, output)
+ f.saveFileList(defaultXMLPathCalcChain, output)
}
}
@@ -54,7 +54,7 @@ func (f *File) deleteCalcChain(index int, axis string) {
}
if len(calc.C) == 0 {
f.CalcChain = nil
- f.Pkg.Delete(dafaultXMLPathCalcChain)
+ f.Pkg.Delete(defaultXMLPathCalcChain)
content := f.contentTypesReader()
content.Lock()
defer content.Unlock()