···350350 wg := sync.WaitGroup{}
351351 ch := make(chan error, len(extManifest.Contents))
352352 for name, entry := range extManifest.Contents {
353353- if entry.GetType() == Type_ExternalFile {
353353+ // Upload external entries (those that were decided as ineligible for being stored inline).
354354+ // If the entry in the original manifest is already an external reference, there's no need
355355+ // to externalize it (and no way for us to do so, since the entry only contains the blob name).
356356+ if entry.GetType() == Type_ExternalFile && manifest.Contents[name].GetType() == Type_InlineFile {
354357 wg.Go(func() {
355358 err := backend.PutBlob(ctx, string(entry.Data), manifest.Contents[name].Data)
356359 if err != nil {