Skip to content

Commit

Permalink
Run Gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
brandur committed Jun 27, 2017
1 parent ed7c888 commit f36de1d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
4 changes: 2 additions & 2 deletions generator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ var listSchema *JSONSchema
func init() {
listSchema = &JSONSchema{
Properties: map[string]*JSONSchema{
"data": &JSONSchema{
"data": {
Items: &JSONSchema{
Ref: "#/definitions/charge",
},
},
"has_more": nil,
"object": &JSONSchema{
"object": {
Enum: []string{"list"},
},
"total_count": nil,
Expand Down
4 changes: 1 addition & 3 deletions main_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package main

import ()

var chargeAllMethod *OpenAPIMethod
var chargeCreateMethod *OpenAPIMethod
var chargeDeleteMethod *OpenAPIMethod
Expand Down Expand Up @@ -36,7 +34,7 @@ func init() {
Type: []string{"string"},
XExpansionResources: &JSONSchema{
OneOf: []*JSONSchema{
&JSONSchema{Ref: "#/definitions/customer"},
{Ref: "#/definitions/customer"},
},
},
},
Expand Down
6 changes: 3 additions & 3 deletions server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func TestParseExpansionLevel(t *testing.T) {

assert.Equal(t,
&ExpansionLevel{expansions: map[string]*ExpansionLevel{
"charge": &ExpansionLevel{expansions: map[string]*ExpansionLevel{
"charge": {expansions: map[string]*ExpansionLevel{
"customer": nil,
"source": nil,
}},
Expand All @@ -54,8 +54,8 @@ func TestParseExpansionLevel(t *testing.T) {

assert.Equal(t,
&ExpansionLevel{expansions: map[string]*ExpansionLevel{
"charge": &ExpansionLevel{expansions: map[string]*ExpansionLevel{
"customer": &ExpansionLevel{expansions: map[string]*ExpansionLevel{
"charge": {expansions: map[string]*ExpansionLevel{
"customer": {expansions: map[string]*ExpansionLevel{
"default_source": nil,
}},
}},
Expand Down
2 changes: 0 additions & 2 deletions spec_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
package main

import ()

0 comments on commit f36de1d

Please sign in to comment.