Commit 864c2dac authored by Loïck Bonniot's avatar Loïck Bonniot

[p] Fix linter

parent 607d1550
Pipeline #304 passed with stage
......@@ -71,7 +71,7 @@ Code lint:
- "./build/deps.sh"
- "cd $GOPATH/src/dfss && go install ./..."
- "gometalinter --install"
- "gometalinter -t --deadline=600s -j1 --skip=api --skip=fixtures ./..."
- "gometalinter -t --deadline=600s -j1 --skip=api --skip=fixtures --disable=aligncheck ./..."
Deploy:
stage: deploy
......
......@@ -29,7 +29,7 @@ type TTPJSON struct {
// JSON is the structure used to store contract information in JSON format
type JSON struct {
UUID string
Date time.Time
Date *time.Time
Comment string
File *FileJSON
Signers []SignerJSON
......@@ -42,7 +42,7 @@ func GetJSON(c *entities.Contract, ttp *TTPJSON) ([]byte, error) {
data := JSON{
UUID: c.ID.Hex(),
Date: c.Date,
Date: &c.Date,
Comment: c.Comment,
File: &FileJSON{
Name: c.File.Name,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment