From f6d9745c5fa3087f12d3eccd053d55a71b4fbbf9 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Wed, 1 Feb 2017 14:50:14 +0800 Subject: [PATCH] Bye bye byebug. --- app/controllers/uploads_controller.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/app/controllers/uploads_controller.rb b/app/controllers/uploads_controller.rb index 52659537e29..5f754d90401 100644 --- a/app/controllers/uploads_controller.rb +++ b/app/controllers/uploads_controller.rb @@ -74,7 +74,6 @@ class UploadsController < ApplicationController return { errors: I18n.t("upload.file_missing") } if tempfile.nil? # convert pasted images to HQ jpegs - byebug if filename == "__blob__.png" && SiteSetting.convert_pasted_images_to_hq_jpg jpeg_path = "#{File.dirname(tempfile.path)}/image.jpg" OptimizedImage.ensure_safe_paths!(tempfile.path, jpeg_path)