this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

cue/load: remove directory argument from addFiles

The argument isn't used, so remove it.

For #3144
For #3147

Signed-off-by: Roger Peppe <rogpeppe@gmail.com>
Change-Id: I4d8c101f1523a89b54bf82a24c21226fe7176d72
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1194763
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>

+3 -3
+1 -1
cue/load/import.go
··· 190 190 return all 191 191 } 192 192 193 - l.addFiles(cfg.ModuleRoot, p) 193 + l.addFiles(p) 194 194 _ = p.Complete() 195 195 } 196 196 slices.SortFunc(all, func(a, b *build.Instance) int {
+2 -2
cue/load/loader.go
··· 141 141 // } 142 142 143 143 pkg.User = true 144 - l.addFiles(l.cfg.Dir, pkg) 144 + l.addFiles(pkg) 145 145 146 146 _ = pkg.Complete() 147 147 pkg.DisplayPath = "command-line-arguments" ··· 149 149 return pkg 150 150 } 151 151 152 - func (l *loader) addFiles(dir string, p *build.Instance) { 152 + func (l *loader) addFiles(p *build.Instance) { 153 153 for _, bf := range p.BuildFiles { 154 154 syntax, ok := l.fileCachedSyntaxFiles[bf.Filename] 155 155 if !ok {