Skip to content

Commit 0388269

Browse files
committed
ICU-23176 Removed condition that was always true
1 parent 800d935 commit 0388269

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

icu4c/source/tools/genrb/wrtjava.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,12 @@ uCharsToChars(char *target, int32_t targetLen, const char16_t *source, int32_t s
126126
}
127127
j+=2;
128128
}else if(source[i-1]!='\\'){
129-
130129
if(j+2<targetLen){
131130
uprv_strcat(target,"\\");
132131
target[j + 1] = static_cast<char>(source[i]);
133132
}
134133
j+=2;
135-
}else if(source[i-1]=='\\'){
134+
}else{
136135
target[j++] = static_cast<char>(source[i]);
137136
}
138137
}else if(source[i]=='\\'){

0 commit comments

Comments
 (0)