Add support for empty strings in target elements and compact func.

Signed-off-by: Anthony Poschen <zanven42@gmail.com>
This commit is contained in:
Anthony Poschen
2020-10-26 15:56:18 +11:00
parent d2bf42f8b4
commit abfb2c064d
2 changed files with 4 additions and 0 deletions

View File

@@ -526,6 +526,9 @@ func removeDupes(s []string) []string {
if _, ok := seen[v]; ok {
continue
}
if v == "" {
continue
}
seen[v] = struct{}{}
s[i] = v
i++