diff --git a/app/services/files/create_service.rb b/app/services/files/create_service.rb index 46acdc5406c..675b05e8fc4 100644 --- a/app/services/files/create_service.rb +++ b/app/services/files/create_service.rb @@ -1,7 +1,7 @@ module Files class CreateService < Files::BaseService def create_commit! - handler = Lfs::FileModificationHandler.new(project, @branch_name) + handler = Lfs::FileTransformer.new(project, @branch_name) handler.new_file(@file_path, @file_content) do |content_or_lfs_pointer| create_transformed_commit(content_or_lfs_pointer) diff --git a/app/services/lfs/file_modification_handler.rb b/app/services/lfs/file_transformer.rb similarity index 97% rename from app/services/lfs/file_modification_handler.rb rename to app/services/lfs/file_transformer.rb index fe9091a6e5d..030f2c6aeba 100644 --- a/app/services/lfs/file_modification_handler.rb +++ b/app/services/lfs/file_transformer.rb @@ -1,5 +1,5 @@ module Lfs - class FileModificationHandler + class FileTransformer attr_reader :project, :branch_name delegate :repository, to: :project