Return nil instead of an empty slice in core.RemoveTrailingEmptyStrings

This commit is contained in:
RandyTheSilly committed 2025-01-18 21:20:39 -05:00
1 parent fc1cd349b8
commit 038e386df7
1 file changed
+1 -1
+1 -1
View File
@@ -82,7 +82,7 @@ func RemoveTrailingEmptyStrings(slice []string) []string {
return slice[:i+1]
}
}
return []string{}
return nil
}
// ClampTrailingWhitespace strips trailing newlines, carriage returns, and tabs from each line in a note.