nolint:gocritic // returning explicit values keeps the signature concise while avoiding unnecessary named results
(ctx context.Context, manager *manager, manifestKey string)
| 95 | |
| 96 | //nolint:gocritic // returning explicit values keeps the signature concise while avoiding unnecessary named results |
| 97 | func loadVaryManifest(ctx context.Context, manager *manager, manifestKey string) ([]string, bool, error) { |
| 98 | raw, err := manager.getRaw(ctx, manifestKey) |
| 99 | if err != nil { |
| 100 | if errors.Is(err, errCacheMiss) { |
| 101 | return nil, false, nil |
| 102 | } |
| 103 | return nil, false, err |
| 104 | } |
| 105 | manifest := utils.UnsafeString(raw) |
| 106 | names, hasStar := parseVary(manifest) |
| 107 | if hasStar { |
| 108 | return nil, false, nil |
| 109 | } |
| 110 | return names, len(names) > 0, nil |
| 111 | } |