Skip to content

Commit fcf1cb2

Browse files
committed
go/build: remove use of package log
package log does not belong here, even for an impossible condition. Change-Id: I6180a4f7766a8e5759db4f33d03703d0b678d0b4 Reviewed-on: https://go-review.googlesource.com/c/go/+/241077 Run-TryBot: Russ Cox <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent 87db6d9 commit fcf1cb2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/go/build/build.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import (
1616
"internal/goversion"
1717
"io"
1818
"io/ioutil"
19-
"log"
2019
"os"
2120
"os/exec"
2221
pathpkg "path"
@@ -924,7 +923,7 @@ Found:
924923
quoted := spec.Path.Value
925924
path, err := strconv.Unquote(quoted)
926925
if err != nil {
927-
log.Panicf("%s: parser returned invalid quoted string: <%s>", filename, quoted)
926+
panic(fmt.Sprintf("%s: parser returned invalid quoted string: <%s>", filename, quoted))
928927
}
929928
fileImports = append(fileImports, importPos{path, spec.Pos()})
930929
if path == "C" {

0 commit comments

Comments
 (0)