Skip to content

Commit e863a03

Browse files
cuishuanggopherbot
authored andcommitted
internal/godoc/dochtml/internal/render: remove duplicate package import
Change-Id: Ib4adf21e58896e19e8a67076e6ca834fdcdcc7dd Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/666235 kokoro-CI: kokoro <[email protected]> Reviewed-by: Sean Liao <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Junyang Shao <[email protected]> Auto-Submit: Sean Liao <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent 0cf8d2e commit e863a03

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

internal/godoc/dochtml/internal/render/linkify_test.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import (
1919

2020
"github.com/google/go-cmp/cmp"
2121
"github.com/google/safehtml"
22-
safe "github.com/google/safehtml"
2322
"github.com/google/safehtml/testconversions"
2423
"golang.org/x/tools/txtar"
2524
)
@@ -562,13 +561,13 @@ func parseDecl(t *testing.T, decl string) ast.Decl {
562561
func TestAddHeading(t *testing.T) {
563562
// This test checks that the generated IDs are unique and the headings are saved.
564563
// It doesn't care about the HTML.
565-
var html safe.HTML
564+
var html safehtml.HTML
566565

567566
check := func(hs *headingScope, ids ...string) {
568567
t.Helper()
569568
var want []heading
570569
for _, id := range ids {
571-
want = append(want, heading{safe.IdentifierFromConstantPrefix("hdr", id), html})
570+
want = append(want, heading{safehtml.IdentifierFromConstantPrefix("hdr", id), html})
572571
}
573572
if !slices.Equal(hs.headings, want) {
574573
t.Errorf("\ngot %v\nwant %v", hs.headings, want)

0 commit comments

Comments
 (0)