From 6732636ccdfd99c4301d1d1ac2307f091331f767 Mon Sep 17 00:00:00 2001 From: Rebecca Stambler Date: Thu, 18 Apr 2019 11:02:52 -0400 Subject: [PATCH] internal/lsp: use strings.EqualFold instead of == Change-Id: I34dc519f25fa976a959a749d4e1a525f5480b963 Reviewed-on: https://go-review.googlesource.com/c/tools/+/172664 Run-TryBot: Rebecca Stambler Reviewed-by: Ian Cottrell TryBot-Result: Gobot Gobot --- internal/span/uri.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/span/uri.go b/internal/span/uri.go index 63d7ba8f8a..c1c068b736 100644 --- a/internal/span/uri.go +++ b/internal/span/uri.go @@ -62,7 +62,7 @@ func CompareURI(a, b URI) int { // If we have the same URI basename, we may still have the same file URIs. if fa, err := a.Filename(); err == nil { if fb, err := b.Filename(); err == nil { - if filepath.Base(fa) == filepath.Base(fb) { + if strings.EqualFold(filepath.Base(fa), filepath.Base(fb)) { // Stat the files to check if they are equal. if infoa, err := os.Stat(fa); err == nil { if infob, err := os.Stat(fb); err == nil {