DamianSzkuat 6 лет назад
Родитель
Сommit
ff985b5fc0
2 измененных файлов с 2 добавлено и 3 удалено
  1. 1 1
      stream_file.go
  2. 1 2
      stream_file_builder.go

+ 1 - 1
stream_file.go

@@ -85,7 +85,7 @@ func (sf *StreamFile) WriteAll(records [][]string) error {
 
 // WriteAllS will write all the rows provided in records. All rows must have the same number of cells as
 // the number of columns given when creating the sheet. This function will always trigger a flush on success.
-// WriteS supports all data types and styles that are supported by StreamCell.
+// WriteAllS supports all data types and styles that are supported by StreamCell.
 func (sf *StreamFile) WriteAllS(records [][]StreamCell) error {
 	if sf.err != nil {
 		return sf.err

+ 1 - 2
stream_file_builder.go

@@ -150,7 +150,7 @@ func (sb *StreamFileBuilder) AddSheetS(name string, columnStyles []StreamStyle)
 		}
 	}
 
-	// TODO Is needed for stream file to work but is not needed for streaming with styles
+	// Is needed for stream file to work but is not needed for streaming with styles
 	sb.styleIds = append(sb.styleIds, []int{})
 
 	sheet.maybeAddCol(len(columnStyles))
@@ -228,7 +228,6 @@ func (sb *StreamFileBuilder) Build() (*StreamFile, error) {
 func (sb *StreamFileBuilder) marshalStyles() (string, error) {
 
 	for streamStyle, _ := range sb.customStreamStyles {
-		// TODO do not add styles that already exist
 		XfId := handleStyleForXLSX(streamStyle.style, streamStyle.xNumFmtId, sb.xlsxFile.styles)
 		sb.styleIdMap[streamStyle] = XfId
 	}