mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-08-27 20:36:29 -04:00
Return nil instead of an empty slice in core.RemoveTrailingEmptyStrings
This commit is contained in:
@@ -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