Skip to content

Commit

Permalink
optimize code style
Browse files Browse the repository at this point in the history
  • Loading branch information
ququzone committed Apr 20, 2023
1 parent c8ac66e commit 74cbacd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ioctl/cmd/did/didserviceadd.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package did
import (
"encoding/json"

"github.com/spf13/cobra"

"github.com/iotexproject/iotex-core/ioctl/cmd/action"
"github.com/iotexproject/iotex-core/ioctl/config"
"github.com/iotexproject/iotex-core/ioctl/output"
"github.com/spf13/cobra"
)

// Multi-language support
Expand Down Expand Up @@ -55,6 +56,5 @@ func addService(args []string) error {
if err != nil {
return output.NewError(output.ConvertError, "failed to encode request", err)
}

return postToResolver(endpoint+"/did/"+addr+"/service", serviceBytes)
}
4 changes: 2 additions & 2 deletions ioctl/cmd/did/didserviceremove.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package did
import (
"encoding/json"

"github.com/spf13/cobra"

"github.com/iotexproject/iotex-core/ioctl/cmd/action"
"github.com/iotexproject/iotex-core/ioctl/config"
"github.com/iotexproject/iotex-core/ioctl/output"
"github.com/spf13/cobra"
)

// Multi-language support
Expand Down Expand Up @@ -53,6 +54,5 @@ func removeService(args []string) error {
if err != nil {
return output.NewError(output.ConvertError, "failed to encode request", err)
}

return postToResolver(endpoint+"/did/"+addr+"/service/delete", serviceBytes)
}

0 comments on commit 74cbacd

Please sign in to comment.