aboutsummaryrefslogtreecommitdiff
path: root/source.go
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-10-12 12:11:53 +0000
committerFuwn <[email protected]>2024-10-12 12:11:53 +0000
commitdc4aeba03243106f00c12aca7799e2a79f66a01e (patch)
tree04c34b2c8d03dc6533f4daa0ed6e3b6fe2eeb8c6 /source.go
parentchore(flake): bump version (diff)
downloadyae-dc4aeba03243106f00c12aca7799e2a79f66a01e.tar.xz
yae-dc4aeba03243106f00c12aca7799e2a79f66a01e.zip
refactor(utilities): move lister to utilities
Diffstat (limited to 'source.go')
-rw-r--r--source.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/source.go b/source.go
index 4665ce3..d1e5f4a 100644
--- a/source.go
+++ b/source.go
@@ -116,15 +116,3 @@ func fetchLatestGitTag(source Source, show bool) (string, error) {
return "", fmt.Errorf("source is not a git repository")
}
-
-func lister(items []string) string {
- if len(items) == 0 {
- return ""
- } else if len(items) == 1 {
- return items[0]
- } else if len(items) == 2 {
- return fmt.Sprintf("%s & %s", items[0], items[1])
- }
-
- return fmt.Sprintf("%s, & %s", strings.Join(items[:len(items)-1], ", "), items[len(items)-1])
-}