commit 5910bc61b6f065cab26682993a76904c37a0f86b
Author:     Laslo Hunhold <d...@frign.de>
AuthorDate: Thu Jun 9 11:12:04 2022 +0200
Commit:     Laslo Hunhold <d...@frign.de>
CommitDate: Thu Jun 9 11:12:04 2022 +0200

    Remove redundant branch
    
    Thanks NRK for spotting this!
    
    Signed-off-by: Laslo Hunhold <d...@frign.de>

diff --git a/src/character.c b/src/character.c
index ac79327..78da33f 100644
--- a/src/character.c
+++ b/src/character.c
@@ -192,12 +192,7 @@ grapheme_next_character_break(const uint_least32_t *str, 
size_t len)
                }
        }
 
-       /* with no breaks we break at the end */
-       if (off == len) {
-               return len;
-       } else {
-               return off;
-       }
+       return off;
 }
 
 size_t

Reply via email to