Skip to content
Snippets Groups Projects
Commit 7d0f41cc authored by rromanov's avatar rromanov
Browse files

fix linter

parent e37e1993
Branches
Tags b0.38.2
No related merge requests found
......@@ -5,8 +5,7 @@ import (
"context"
"encoding/json"
"fmt"
"gitlab.mashplace.com/mashplace/backend/invoice/docs"
"io/ioutil"
"io"
"math"
"os"
"strconv"
......@@ -30,6 +29,7 @@ import (
document "gitlab.mashplace.com/mashplace/backend/document/api"
extras "gitlab.mashplace.com/mashplace/backend/extras/api"
invoice "gitlab.mashplace.com/mashplace/backend/invoice/api"
"gitlab.mashplace.com/mashplace/backend/invoice/docs"
"gitlab.mashplace.com/mashplace/backend/invoice/internal/model"
offer "gitlab.mashplace.com/mashplace/backend/offer/api"
)
......@@ -622,10 +622,8 @@ func (srv *serviceImpl) reportRenderCsvHEIBordeaux(
for _, i := range items {
client := fmt.Sprintf("%s %s", i.UserData.Details.FirstName, i.UserData.Details.LastName)
policyNumber := fmt.Sprintf("MashHEI-%06d", i.Reference)
var start time.Time
var end time.Time
if i.Details.Time != nil {
start = time.Time(i.Details.Time.Start)
end = time.Time(i.Details.Time.Start).AddDate(1, 0, -1)
......@@ -853,7 +851,7 @@ func (srv *serviceImpl) reportRenderXlsxHEIAndDRPBordeaux(
return nil, err
}
tempF, err := ioutil.TempFile("/bordeaux", "template")
tempF, err := io.TempFile("/bordeaux", "template")
if err != nil {
return nil, err
}
......
......@@ -3,9 +3,8 @@ package version
import (
_ "embed" // embed data processing
"gitlab.mashplace.com/mashplace/backend/common/generic/log"
"gitlab.mashplace.com/mashplace/backend/common/api/health"
"gitlab.mashplace.com/mashplace/backend/common/generic/log"
)
var (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment