Skip to content

Commit 07d57d8

Browse files
committed
more
1 parent 2f60a43 commit 07d57d8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/ls/autoimports.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ func (l *LanguageService) getImportCompletionAction(
380380
// formatContext *formattingContext,
381381
preferences *UserPreferences,
382382
) (string, codeAction) {
383-
var exportInfos []*SymbolExportInfo = l.getExportInfos(ctx, ch, sourceFile, preferences, exportMapKey)
383+
exportInfos := l.getExportInfos(ctx, ch, sourceFile, preferences, exportMapKey)
384384
if len(exportInfos) == 0 {
385385
panic("Some exportInfo should match the specified exportMapKey")
386386
}

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{} //nolint:staticcheck
1609+
extraFileExtensions = []FileExtensionInfo{}
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)