Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-ogrady committed Nov 13, 2020
1 parent 19a0cc9 commit d0735af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions client/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ func (c *Configuration) ServerURL(index int, variables map[string]string) (strin
variable.EnumValues,
)
}
url = strings.Replace(url, "{"+name+"}", value, -1)
url = strings.ReplaceAll(url, "{"+name+"}", value)
} else {
url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1)
url = strings.ReplaceAll(url, "{"+name+"}", variable.DefaultValue)
}
}
return url, nil
Expand Down
2 changes: 1 addition & 1 deletion parser/match_operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func metadataMatch(reqs []*MetadataDescription, metadata map[string]interface{})
// accountMatch returns an error if a *types.AccountIdentifier does not meet
// an *AccountDescription.
func accountMatch(req *AccountDescription, account *types.AccountIdentifier) error {
if req == nil { //anything is ok
if req == nil { // anything is ok
return nil
}

Expand Down

0 comments on commit d0735af

Please sign in to comment.