Skip to content

Commit

Permalink
decoder: remove deadcode, the context never set (#1709)
Browse files Browse the repository at this point in the history
  • Loading branch information
giautm authored May 16, 2024
1 parent 9f22119 commit 4002342
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 35 deletions.
24 changes: 0 additions & 24 deletions internal/decoder/context.go

This file was deleted.

11 changes: 0 additions & 11 deletions internal/decoder/path_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,7 @@ func (mr *PathReader) Paths(ctx context.Context) []lang.Path {
if err != nil {
return paths
}

langId, hasLang := LanguageId(ctx)

for _, mod := range modList {
if hasLang {
paths = append(paths, lang.Path{
Path: mod.Path,
LanguageID: langId.String(),
})
continue
}

paths = append(paths, lang.Path{
Path: mod.Path,
LanguageID: ilsp.Terraform.String(),
Expand Down

0 comments on commit 4002342

Please sign in to comment.