go formmat
This commit is contained in:
parent
5c341e18c3
commit
93f6958b9c
|
@ -84,7 +84,9 @@ func GoFmtHandler(w http.ResponseWriter, r *http.Request) {
|
|||
bytes, _ := cmd.Output()
|
||||
output := string(bytes)
|
||||
if "" == output {
|
||||
data["succ"] = false
|
||||
// format error, returns the original content
|
||||
data["succ"] = true
|
||||
data["code"] = code
|
||||
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue