diff options
Diffstat (limited to 'hugofs/filter_fs.go')
-rw-r--r-- | hugofs/filter_fs.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hugofs/filter_fs.go b/hugofs/filter_fs.go index 351b4d0f7..1b020738a 100644 --- a/hugofs/filter_fs.go +++ b/hugofs/filter_fs.go @@ -92,7 +92,7 @@ func NewLanguageFs(langs map[string]int, fs afero.Fs) (afero.Fs, error) { fim := fi.(FileMetaInfo) langs := translations[fim.Meta().TranslationBaseNameWithExt] if len(langs) > 0 { - fim.Meta().Translations = sortAndremoveStringDuplicates(langs) + fim.Meta().Translations = sortAndRemoveStringDuplicates(langs) } } } @@ -328,7 +328,7 @@ func printFs(fs afero.Fs, path string, w io.Writer) { }) } -func sortAndremoveStringDuplicates(s []string) []string { +func sortAndRemoveStringDuplicates(s []string) []string { ss := sort.StringSlice(s) ss.Sort() i := 0 |