Skip to content

Commit 02658da

Browse files
committed
Shorter if/else for simple statement
1 parent 4dba260 commit 02658da

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/main/java/org/radarcns/data/FileCache.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,7 @@ private static void copy(Path source, OutputStream sink, boolean gzip) throws IO
144144
}
145145

146146
private static InputStream inputStream(InputStream in, boolean gzip) throws IOException {
147-
if (gzip) {
148-
return new GZIPInputStream(in);
149-
} else {
150-
return in;
151-
}
147+
return gzip ? new GZIPInputStream(in) : in;
152148
}
153149

154150
/**

0 commit comments

Comments
 (0)