diff options
author | Sean McGivern <sean@gitlab.com> | 2017-03-01 14:00:37 +0300 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2017-03-01 18:28:10 +0300 |
commit | 811e598f607235d89e71d09d99538ee4dee3ffed (patch) | |
tree | 7608961ebb9c672836dd2e3f03eb56920e7b4ef3 /app/services/files/update_service.rb | |
parent | 8dd097a91530e4b047c4b391f21047c7d29d310d (diff) |
Enable and autocorrect the CustomErrorClass cop
Diffstat (limited to 'app/services/files/update_service.rb')
-rw-r--r-- | app/services/files/update_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/files/update_service.rb b/app/services/files/update_service.rb index 54e1aaf3f67..fbbab97632e 100644 --- a/app/services/files/update_service.rb +++ b/app/services/files/update_service.rb @@ -1,6 +1,6 @@ module Files class UpdateService < Files::BaseService - class FileChangedError < StandardError; end + FileChangedError = Class.new(StandardError) def commit repository.update_file(current_user, @file_path, @file_content, |