Skip to content

Commit 37d43ba

Browse files
committed
more
1 parent ea5773a commit 37d43ba

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

internal/ls/changetrackerimpl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ func (ct *changeTracker) getAdjustedEndPosition(sourceFile *ast.SourceFile, node
302302
// ============= utilities =============
303303

304304
func hasCommentsBeforeLineBreak(text string, start int) bool {
305-
for _, ch := range []rune(text[start:]) {
305+
for _, ch := range text[start:] {
306306
if !stringutil.IsWhiteSpaceSingleLine(ch) {
307307
return ch == '/'
308308
}

internal/ls/completions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3347,7 +3347,7 @@ func charactersFuzzyMatchInString(identifierString string, lowercaseCharacters s
33473347
lowerCaseRunes := []rune(lowercaseCharacters)
33483348
testChar := lowerCaseRunes[characterIndex]
33493349

3350-
for _, strChar := range []rune(identifierString) {
3350+
for _, strChar := range identifierString {
33513351
if strChar == testChar || strChar == unicode.ToUpper(testChar) {
33523352
willMatchFirstChar := prevChar == 0 || // Beginning of word
33533353
'a' <= prevChar && prevChar <= 'z' && 'A' <= strChar && strChar <= 'Z' || // camelCase transition

internal/project/refcounting_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func TestRefCountingCaches(t *testing.T) {
9999
assert.NilError(t, err)
100100
assert.Equal(t, utilsEntry.refCount, 1)
101101
assert.Equal(t, mainEntry.refCount, 0)
102-
mainEntry, ok := session.parseCache.entries.Load(newParseCacheKey(main.ParseOptions(), main.ScriptKind))
102+
_, ok := session.parseCache.entries.Load(newParseCacheKey(main.ParseOptions(), main.ScriptKind))
103103
assert.Equal(t, ok, false)
104104
})
105105
})

internal/tsoptions/tsconfigparsing.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1606,7 +1606,7 @@ func getFileNamesFromConfigSpecs(
16061606
host vfs.FS,
16071607
extraFileExtensions []FileExtensionInfo,
16081608
) ([]string, int) {
1609-
extraFileExtensions = []FileExtensionInfo{}
1609+
extraFileExtensions = []FileExtensionInfo{} //nolint:staticcheck
16101610
basePath = tspath.NormalizePath(basePath)
16111611
keyMappper := func(value string) string { return tspath.GetCanonicalFileName(value, host.UseCaseSensitiveFileNames()) }
16121612
// Literal file names (provided via the "files" array in tsconfig.json) are stored in a

0 commit comments

Comments
 (0)