mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-10-26 22:09:56 -04:00
Return nil instead of an empty slice in core.RemoveTrailingEmptyStrings
This commit is contained in:
1 parent
fc1cd349b8
commit
038e386df7
1 file changed
+1
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user