From: Yuri Volchkov Date: Mon, 21 Aug 2017 15:44:45 +0000 (+0200) Subject: database: move striping of trailing '/' into helper function X-Git-Tag: 0.26_rc0~186 X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;h=cec4a87539599e7d253b694c2a0a81de86d6eb7e;hp=cec4a87539599e7d253b694c2a0a81de86d6eb7e;p=notmuch database: move striping of trailing '/' into helper function Stripping trailing character is not that uncommon operation. Particularly, the next patch has to perform it as well. Lets move it to the separate function to avoid code duplication. Also the new function has a little improvement: if the character to strip is repeated several times in the end of a string, function strips them all. Signed-off-by: Yuri Volchkov ---