Skip to content

Commit 0035cd3

Browse files
committed
Fix warning of gofmt -s
1 parent 796478a commit 0035cd3

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

entity/entity_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import (
44
"path/filepath"
55
"testing"
66

7+
"go.knocknote.io/eevee/class"
78
"go.knocknote.io/eevee/config"
89
"go.knocknote.io/eevee/entity"
910
_ "go.knocknote.io/eevee/plugin"
10-
"go.knocknote.io/eevee/class"
1111
)
1212

1313
func TestGenerate(t *testing.T) {

graph/graph.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import (
77
"path/filepath"
88
"text/template"
99

10+
"github.com/rakyll/statik/fs"
1011
"go.knocknote.io/eevee/config"
1112
_ "go.knocknote.io/eevee/static"
1213
"go.knocknote.io/eevee/types"
13-
"github.com/rakyll/statik/fs"
1414
"golang.org/x/xerrors"
1515
)
1616

repository/repository.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ func (g *Generator) generateMock(class *types.Class, path string) ([]byte, error
237237
toModelMethod := g.ToModelMock(g.helper(class))
238238
toModelsMethod := g.ToModelsMock(g.helper(class))
239239
methodNameMap := map[string]struct{}{
240-
"Create": struct{}{},
241-
"Creates": struct{}{},
240+
"Create": {},
241+
"Creates": {},
242242
}
243243
findMethods := []*types.Method{}
244244
for _, method := range daoPackageDecl.Methods {

schema/schema.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
"regexp"
88
"time"
99

10+
"github.com/knocknote/vitess-sqlparser/sqlparser"
1011
"go.knocknote.io/eevee/plural"
1112
"go.knocknote.io/eevee/types"
12-
"github.com/knocknote/vitess-sqlparser/sqlparser"
1313
"golang.org/x/xerrors"
1414
)
1515

types/model.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func (h *ModelMethodHelper) CollectionProperties() ValueDeclares {
125125
}
126126
}
127127
var sortedKeys []string
128-
for k, _ := range propertyMap {
128+
for k := range propertyMap {
129129
sortedKeys = append(sortedKeys, k)
130130
}
131131
sort.Strings(sortedKeys)

types/type.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ func (c *Class) TestData() *TestData {
673673
"default": defaultObject,
674674
},
675675
Collection: map[string][]*TestObject{
676-
"defaults": []*TestObject{defaultObject},
676+
"defaults": {defaultObject},
677677
},
678678
}
679679
}

0 commit comments

Comments
 (0)