Skip to content

Commit 17e5758

Browse files
committed
Polishing
Simplify code. [#367][resolves #371]
1 parent 5e928ab commit 17e5758

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/main/java/io/r2dbc/postgresql/message/backend/AbstractCopyResponse.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,6 @@ static Set<Format> readColumnFormats(ByteBuf in) {
8686
int count = in.readShort();
8787
Set<Format> formatSet = EnumSet.noneOf(Format.class);
8888

89-
if (0 == count) {
90-
return formatSet;
91-
}
92-
9389
for (int i = 0; i < count; i++) {
9490
formatSet.add(Format.valueOf(in.readShort()));
9591
}

0 commit comments

Comments
 (0)