From 55003bb613388907375f6e5ac72b131510d946d0 Mon Sep 17 00:00:00 2001 From: Konrad Date: Mon, 14 Oct 2024 10:28:28 +0200 Subject: [PATCH] style: rubocop fix --- lib/morandi/image_processor.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/morandi/image_processor.rb b/lib/morandi/image_processor.rb index e6dfbd2..419ab68 100644 --- a/lib/morandi/image_processor.rb +++ b/lib/morandi/image_processor.rb @@ -97,10 +97,10 @@ def get_pixbuf # @scale = @max_size_px ? @max_size_px / [width, height].max : 1.0 actual_max = [@pb.width, @pb.height].max src_max = if @max_size_px - [width, height].max - else - [@pb.width, @pb.height].max - end + [width, height].max + else + [@pb.width, @pb.height].max + end @scale = actual_max / src_max.to_f end