fixed indentation and code style mismatches
@@ -101,7 +101,8 @@ lz4_compress_generic (int comp, char* source, char* dest, size_t source_size, si
{
LZ4_stream_t lz4_state;
LZ4_resetStream (&lz4_state);
- if (dict) {
+ if (dict)
+ {
LZ4_loadDict (&lz4_state, dict, dict_size);
}
if (comp != FAST)
@@ -109,10 +110,13 @@ lz4_compress_generic (int comp, char* source, char* dest, size_t source_size, si
acceleration = 1;
}
return LZ4_compress_fast_continue (&lz4_state, source, dest, source_size, dest_size, acceleration);
- } else {
+ }
+ else
+ {
LZ4_streamHC_t lz4_state;
LZ4_resetStreamHC (&lz4_state, compression);
- if (dict) {
+ if (dict)
+ {
LZ4_loadDictHC (&lz4_state, dict, dict_size);
}
return LZ4_compress_HC_continue (&lz4_state, source, dest, source_size, dest_size);
