mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-10 19:54:08 +02:00
@@ -149,13 +149,13 @@ func (m *ModulesConfig) finalize(logger loggers.Logger) error {
|
||||
|
||||
func filterUnwantedMounts(mounts []Mount) []Mount {
|
||||
// Remove duplicates
|
||||
seen := make(map[Mount]bool)
|
||||
seen := make(map[string]bool)
|
||||
tmp := mounts[:0]
|
||||
for _, m := range mounts {
|
||||
if !seen[m] {
|
||||
if !seen[m.key()] {
|
||||
tmp = append(tmp, m)
|
||||
}
|
||||
seen[m] = true
|
||||
seen[m.key()] = true
|
||||
}
|
||||
return tmp
|
||||
}
|
||||
|
Reference in New Issue
Block a user