mirror of
https://github.com/containers/podman.git
synced 2025-12-12 09:50:25 +08:00
Switch from projectatomic/buildah to containers/buildah Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
16 lines
286 B
Go
16 lines
286 B
Go
// +build linux
|
|
|
|
package chroot
|
|
|
|
func dedupeStringSlice(slice []string) []string {
|
|
done := make([]string, 0, len(slice))
|
|
m := make(map[string]struct{})
|
|
for _, s := range slice {
|
|
if _, present := m[s]; !present {
|
|
m[s] = struct{}{}
|
|
done = append(done, s)
|
|
}
|
|
}
|
|
return done
|
|
}
|