Skip to content

Commit ce66d9f

Browse files
blicklycopybara-github
authored andcommitted
Remove unnecessary branching
PiperOrigin-RevId: 716301549
1 parent 205580b commit ce66d9f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/com/google/javascript/jscomp/base/format/SimpleFormat.java

+1-5
Original file line numberDiff line numberDiff line change
@@ -588,11 +588,7 @@ private CharSequence padding(CharSequence source, int startIndex) {
588588

589589
char paddingChar = '\u0020'; // space as padding char.
590590
if (formatToken.flagZero) {
591-
if (formatToken.getConversionType() == 'd') {
592-
paddingChar = '0';
593-
} else {
594-
paddingChar = '0'; // No localized digits for bases other than decimal.
595-
}
591+
paddingChar = '0';
596592
} else {
597593
// if padding char is space, always pad from the start.
598594
start = 0;

0 commit comments

Comments
 (0)