Skip to content

Commit c06cf8d

Browse files
adonovangopherbot
authored andcommitted
gopls/internal/golang: ignoredError inlay hint: skip io.WriteString
Change-Id: I43b0eefe5e0345c3c7b4dcda889d73baab16cbbb Reviewed-on: https://go-review.googlesource.com/c/tools/+/693035 Auto-Submit: Alan Donovan <[email protected]> Reviewed-by: Robert Findley <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent c05436a commit c06cf8d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gopls/internal/golang/inlay_hint.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ outer:
165165
obj := typeutil.Callee(info, call)
166166
if analysisinternal.IsFunctionNamed(obj, "fmt", "Print", "Printf", "Println", "Fprint", "Fprintf", "Fprintln") ||
167167
analysisinternal.IsMethodNamed(obj, "bytes", "Buffer", "Write", "WriteByte", "WriteRune", "WriteString") ||
168-
analysisinternal.IsMethodNamed(obj, "strings", "Builder", "Write", "WriteByte", "WriteRune", "WriteString") {
168+
analysisinternal.IsMethodNamed(obj, "strings", "Builder", "Write", "WriteByte", "WriteRune", "WriteString") ||
169+
analysisinternal.IsFunctionNamed(obj, "io", "WriteString") {
169170
continue
170171
}
171172

0 commit comments

Comments
 (0)