We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 241c93c + b2be3e2 commit b101b68Copy full SHA for b101b68
1 file changed
internal/util/util.go
@@ -47,8 +47,8 @@ func Exit(code int, msg string) {
47
48
// entryExists checks if an entry already exists in the content
49
func entryExists(content, entry string) bool {
50
- lines := strings.Split(strings.TrimSpace(content), "\n")
51
- for _, line := range lines {
+ lines := strings.SplitSeq(strings.TrimSpace(content), "\n")
+ for line := range lines {
52
if strings.TrimSpace(line) == strings.TrimSpace(entry) {
53
return true
54
}
0 commit comments