style: remove weird indented code

This commit is contained in:
Connor Tumbleson 2020-11-28 12:43:45 -05:00 committed by Connor Tumbleson
parent f1393c3ca6
commit 150ffc4fdc

View File

@ -264,20 +264,21 @@ public class StringBlock {
return null; return null;
} }
int offset = m_styleOffsets[index] / 4; int offset = m_styleOffsets[index] / 4;
int style[];
{
int count = 0; int count = 0;
int[] style;
for (int i = offset; i < m_styles.length; ++i) { for (int i = offset; i < m_styles.length; ++i) {
if (m_styles[i] == -1) { if (m_styles[i] == -1) {
break; break;
} }
count += 1; count += 1;
} }
if (count == 0 || (count % 3) != 0) { if (count == 0 || (count % 3) != 0) {
return null; return null;
} }
style = new int[count]; style = new int[count];
}
for (int i = offset, j = 0; i < m_styles.length;) { for (int i = offset, j = 0; i < m_styles.length;) {
if (m_styles[i] == -1) { if (m_styles[i] == -1) {
break; break;