From f1cd0d63883d9c0e5becf780c82a749a9da0e23b Mon Sep 17 00:00:00 2001 From: Martin Brennan Date: Mon, 25 Nov 2019 16:40:27 +1000 Subject: [PATCH] Remove unnecessary commented code --- app/assets/javascripts/discourse/lib/uploads.js.es6 | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/assets/javascripts/discourse/lib/uploads.js.es6 b/app/assets/javascripts/discourse/lib/uploads.js.es6 index 89b8b973b67..ed0271e8f34 100644 --- a/app/assets/javascripts/discourse/lib/uploads.js.es6 +++ b/app/assets/javascripts/discourse/lib/uploads.js.es6 @@ -15,8 +15,6 @@ function imageNameFromFileName(fileName) { } return name.replace(/\[|\]|\|/g, ""); - - // return encodeURIComponent(name).replace(/%20/g, " "); } export function validateUploadedFiles(files, opts) {