Skip to content

Commit

Permalink
resolve conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
huof6829 committed Jul 19, 2022
1 parent 69f154e commit cfa8be6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ioctl/cmd/contract/contractshare.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func share(args []string) error {
return nil
})

log.Println("Listening on 127.0.0.1:65520, Please open your IDE ( " + _iotexIDE + " ) to connect to local files")
log.Printf("Listening on 127.0.0.1:65520, Please open your IDE ( %s ) to connect to local files", _iotexIDE)

http.HandleFunc("/", func(writer http.ResponseWriter, request *http.Request) {
conn, err := _upgrade.Upgrade(writer, request, nil)
Expand Down Expand Up @@ -239,7 +239,7 @@ func share(args []string) error {
log.Println("send get response: ", err)
break
}
log.Printf("rename: %s to %s\n", easpcapeString(oldPath), easpcapeString(newPath))
log.Printf("rename: %s to %s\n", easpcapeString(oldRenamePath), easpcapeString(newRenamePath))

case "set":
t := request.Payload
Expand Down Expand Up @@ -276,7 +276,6 @@ func share(args []string) error {
return nil
}


func easpcapeString(str string) string {
escaped := strings.Replace(str, "\n", "", -1)
return strings.Replace(escaped, "\r", "", -1)
Expand Down

0 comments on commit cfa8be6

Please sign in to comment.