Remove the comment and make this a single line 

     if (shouldCompress(blockId)) compressionCodec.compressionOutputStream(s) else s