More concise stream class

This commit is contained in:
Anuken
2020-03-03 12:11:35 -05:00
parent ceac809c1d
commit e8823fab36

View File

@ -31,7 +31,7 @@ public class FontGenerator{
String session = folder.child("session").readString(); String session = folder.child("session").readString();
net.httpGet("http://fontello.com/" + session + "/get", result -> { net.httpGet("http://fontello.com/" + session + "/get", result -> {
try{ try{
Streams.copyStream(result.getResultAsStream(), folder.child("font.zip").write()); Streams.copy(result.getResultAsStream(), folder.child("font.zip").write());
}catch(IOException e){ }catch(IOException e){
throw new RuntimeException(e); throw new RuntimeException(e);
} }