File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
private/bufpkg/bufimage/bufimageutil Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -431,11 +431,10 @@ func (t *transitiveClosure) addElement(
431
431
opts * imageFilterOptions ,
432
432
) error {
433
433
descriptorInfo := imageIndex .ByDescriptor [descriptor ]
434
- existingMode , ok := t .elements [descriptor ]
435
- if existingMode == inclusionModeExcluded {
436
- return nil // already excluded
437
- }
438
- if ok && existingMode != inclusionModeEnclosing {
434
+ if existingMode , ok := t .elements [descriptor ]; ok && existingMode != inclusionModeExcluded {
435
+ if existingMode == inclusionModeExcluded {
436
+ return nil // already excluded
437
+ }
439
438
t .addImport (referrerFile , descriptorInfo .file .Path ())
440
439
if existingMode == inclusionModeImplicit && ! impliedByCustomOption {
441
440
// upgrade from implied to explicitly part of closure
You can’t perform that action at this time.
0 commit comments