Skip to content

Commit

Permalink
Fixed linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
coufalja committed Mar 16, 2018
1 parent 2c830b0 commit 66f9576
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
11 changes: 6 additions & 5 deletions config/cmd/decrypt.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,15 @@ func executeDecrypt(args []string) error {
}
}

if res, err := client.NewClient(client.Config{
res, err := client.NewClient(client.Config{
URI: dp.source,
}).Decrypt(dp.value); err == nil {
}).Decrypt(dp.value)

if err == nil {
fmt.Println(res)
return nil
} else {
return err
}

return err
}

func init() {
Expand Down
11 changes: 6 additions & 5 deletions config/cmd/encrypt.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,15 @@ func executeEncrypt(args []string) error {
}
}

if res, err := client.NewClient(client.Config{
res, err := client.NewClient(client.Config{
URI: ep.source,
}).Encrypt(ep.value); err == nil {
}).Encrypt(ep.value)

if err == nil {
fmt.Println(res)
return nil
} else {
return err
}

return err
}

func init() {
Expand Down

0 comments on commit 66f9576

Please sign in to comment.