summaryrefslogtreecommitdiff
path: root/cell.go
diff options
context:
space:
mode:
Diffstat (limited to 'cell.go')
-rw-r--r--cell.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/cell.go b/cell.go
index 983b260..146d0a2 100644
--- a/cell.go
+++ b/cell.go
@@ -228,8 +228,7 @@ func setCellTime(value time.Time) (t string, b string, isNum bool, err error) {
var excelTime float64
_, offset := value.In(value.Location()).Zone()
value = value.Add(time.Duration(offset) * time.Second)
- excelTime, err = timeToExcelTime(value)
- if err != nil {
+ if excelTime, err = timeToExcelTime(value); err != nil {
return
}
isNum = excelTime > 0
@@ -419,8 +418,7 @@ func setCellStr(value string) (t string, v string, ns xml.Attr) {
}
}
}
- t = "str"
- v = bstrMarshal(value)
+ t, v = "str", bstrMarshal(value)
return
}