Skip to content

Commit 3ad6866

Browse files
author
Sriya Pratipati
committed
code cleanup
1 parent b1e17ad commit 3ad6866

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libc/src/__support/wchar/character_converter.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ int CharacterConverter::push(char8_t utf8_byte) {
7575
}
7676

7777
ErrorOr<char32_t> CharacterConverter::pop_utf32() {
78-
char32_t utf32;
79-
utf32 = state->partial;
8078
// if pop is called too early
81-
if (!isComplete()) {
79+
if (!isComplete())
8280
return Error(-1);
83-
}
81+
82+
char32_t utf32 = state->partial;
83+
8484
// reset if successful pop
8585
state->bytes_processed = 0;
8686
state->total_bytes = 0;

0 commit comments

Comments
 (0)