We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fdf3fa commit ae77ff9Copy full SHA for ae77ff9
src/main/java/com/maxmind/db/MultiBuffer.java
@@ -149,9 +149,8 @@ public double getDouble() {
149
int off = (int) (position % CHUNK_SIZE);
150
ByteBuffer buf = buffers.get(bufIndex);
151
buf.position(off);
152
- double value;
153
if (buf.remaining() >= 8) {
154
- value = buf.getDouble();
+ double value = buf.getDouble();
155
position += 8;
156
return value;
157
} else {
@@ -168,9 +167,8 @@ public float getFloat() {
168
167
169
170
171
- float value;
172
if (buf.remaining() >= 4) {
173
- value = buf.getFloat();
+ float value = buf.getFloat();
174
position += 4;
175
176
0 commit comments