(
seq []string,
toRemove map[string]struct{},
keyFunc func(string) string,
)
| 911 | } |
| 912 | |
| 913 | func removeItems( |
| 914 | seq []string, |
| 915 | toRemove map[string]struct{}, |
| 916 | keyFunc func(string) string, |
| 917 | ) []string { |
| 918 | newSeq := []string{} |
| 919 | for _, item := range seq { |
| 920 | if _, exists := toRemove[keyFunc(item)]; !exists { |
| 921 | newSeq = append(newSeq, item) |
| 922 | } |
| 923 | } |
| 924 | return newSeq |
| 925 | } |
| 926 | |
| 927 | func updateMounts(flags *pflag.FlagSet, mounts *[]mount.Mount) error { |
| 928 | mountsByTarget := map[string]mount.Mount{} |
no outgoing calls
no test coverage detected
searching dependent graphs…