Skip to content

Commit

Permalink
Fix new codeclimate issues
Browse files Browse the repository at this point in the history
  • Loading branch information
cristim committed Mar 19, 2017
1 parent bf362fc commit f01b27a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ indent_size = 2
insert_final_newline = true

# Tab indentation is needed on Makefiles
[Makefile]
[Makefile*]
indent_style = tab
indent_size = 4
12 changes: 6 additions & 6 deletions ec2instancesinfo/ec2_instance_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ type storageConfiguration struct {
}

type regionPrices struct {
Linux Linux `json:"linux"`
Linux linuxPricing `json:"linux"`
// ignored for now, not useful
// Mswinsqlweb interface{} `json:"mswinSQLWeb"`
// Mswinsql interface{} `json:"mswinSQL"`
// Mswin interface{} `json:"mswin"`
}

type Linux struct {
type linuxPricing struct {
// this may contain string encoded numbers or "N/A" in some regions for
// regionally unsupported instance types. It needs special parsing later
OnDemand string `json:"ondemand"`
Expand All @@ -73,10 +73,10 @@ type Linux struct {
// information about all the EC2 instance types from all AWS regions.
type InstanceData []jsonInstance

// Load generates the RawInstanceData object based on data sourced from
// ec2instances.info. The data is shipped as a JSON blob, which is converted
// into golang source-code by the go-bindata tool and compiled into this
// library.
// Data generates the InstanceData object based on data sourced from
// ec2instances.info. The data is delivered to us as a JSON blob, which is
// converted into golang source-code by the go-bindata tool and unmarshaled into
// a golang data structure by this library.
func Data() (*InstanceData, error) {

var data InstanceData
Expand Down

0 comments on commit f01b27a

Please sign in to comment.