Skip to content

Commit

Permalink
fix compressed count regression
Browse files Browse the repository at this point in the history
repro: `echo 'abc=3' | shrinko8 --count --minify - -`

before this commit, this command showed stats for
tokens and chars, but not compressed

now, it also shows compressed
  • Loading branch information
pancelor committed Oct 17, 2023
1 parent 015b3d8 commit de6a137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shrinko8.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ def handle_processing(args, main_cart, extra_carts):

if args.count:
write_code_size(cart, handler=args.count)
if not (args.output and args.format.is_src()) and not args.no_count_compress: # else, will be done in write_cart
if not (args.output and not args.format.is_src()) and not args.no_count_compress: # else, will be done in write_cart
write_compressed_size(cart, handler=args.count, fast_compress=args.fast_compression, debug_handler=args.trace_compression)

if args.version:
Expand Down

0 comments on commit de6a137

Please sign in to comment.