Ver a proveniência

add missing string variable in log statement in export.go + go fmt

pull/111/head
Rob Loranger há 5 anos
ascendente
cometimento
3986c8eec1
Não foi encontrada uma chave conhecida para esta assinatura, na base de dados ID da chave GPG: D6F1633A4F0903B8
1 ficheiros alterados com 3 adições e 2 eliminações
  1. +3
    -2
      export.go

+ 3
- 2
export.go Ver ficheiro

@@ -14,9 +14,10 @@ import (
"archive/zip"
"bytes"
"encoding/csv"
"github.com/writeas/web-core/log"
"strings"
"time"

"github.com/writeas/web-core/log"
)

func exportPostsCSV(u *User, posts *[]PublicPost) []byte {
@@ -37,7 +38,7 @@ func exportPostsCSV(u *User, posts *[]PublicPost) []byte {
w := csv.NewWriter(&b)
w.WriteAll(r) // calls Flush internally
if err := w.Error(); err != nil {
log.Info("error writing csv:", err)
log.Info("error writing csv: %v", err)
}

return b.Bytes()


Carregando…
Cancelar
Guardar