Skip to content

Commit

Permalink
fix: type
Browse files Browse the repository at this point in the history
  • Loading branch information
zepatrik committed Sep 15, 2020
1 parent 4993ec0 commit e264c69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/identities/import.go
Expand Up @@ -39,7 +39,7 @@ func importIdentities(cmd *cobra.Command, args []string) {

validateIdentity("STD_IN", fc, c)

var params models.CreateIdentityRequestPayload
var params models.CreateIdentity
err = json.NewDecoder(bytes.NewBuffer(fc)).Decode(&params)
cmdx.Must(err, "STD_IN: Could not parse identity: %s", err)

Expand All @@ -57,7 +57,7 @@ func importIdentities(cmd *cobra.Command, args []string) {
for _, fn := range args {
fc := validateIdentityFile(fn, c)

var params models.CreateIdentityRequestPayload
var params models.CreateIdentity
err := json.NewDecoder(bytes.NewBuffer(fc)).Decode(&params)
cmdx.Must(err, "%s: Could not parse identity file: %s", fn, err)

Expand Down

0 comments on commit e264c69

Please sign in to comment.