mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-24 17:27:56 +00:00
Switch from projectatomic/buildah to containers/buildah Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
15 lines
286 B
Go
15 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
|
|
}
|