Should be zero to avoid highlight editor
This commit is contained in:
parent
9bfaef796e
commit
1362ad1ea3
|
@ -355,7 +355,7 @@ func BuildHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
file := line[:strings.Index(line, ":")]
|
file := line[:strings.Index(line, ":")]
|
||||||
left := line[strings.Index(line, ":")+1:]
|
left := line[strings.Index(line, ":")+1:]
|
||||||
index := strings.Index(left, ":")
|
index := strings.Index(left, ":")
|
||||||
lineNo := 1
|
lineNo := 0
|
||||||
msg := left
|
msg := left
|
||||||
if index >= 0 {
|
if index >= 0 {
|
||||||
lineNo, _ = strconv.Atoi(left[:index])
|
lineNo, _ = strconv.Atoi(left[:index])
|
||||||
|
@ -627,7 +627,7 @@ func GoInstallHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
file := line[:strings.Index(line, ":")]
|
file := line[:strings.Index(line, ":")]
|
||||||
left := line[strings.Index(line, ":")+1:]
|
left := line[strings.Index(line, ":")+1:]
|
||||||
index := strings.Index(left, ":")
|
index := strings.Index(left, ":")
|
||||||
lineNo := 1
|
lineNo := 0
|
||||||
msg := left
|
msg := left
|
||||||
if index >= 0 {
|
if index >= 0 {
|
||||||
lineNo, _ = strconv.Atoi(left[:index])
|
lineNo, _ = strconv.Atoi(left[:index])
|
||||||
|
|
Loading…
Reference in New Issue