diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2018-07-02 13:57:38 +0000 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2018-07-09 21:13:08 +0800 |
commit | 9286f5b9340f92131c320c231a5fb3e51c23bf04 (patch) | |
tree | 49bbb5c1ebc03a9fda46791273e949a8e467710f /app/services | |
parent | 4ee08b77bc5ae11553d59c182ea8292b77699115 (diff) | |
download | gitlab-ce-9286f5b9340f92131c320c231a5fb3e51c23bf04.tar.gz |
Use stable gitlab-styles and eliminate offenses
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/notification_recipient_service.rb | 1 | ||||
-rw-r--r-- | app/services/projects/lfs_pointers/lfs_download_service.rb | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/app/services/notification_recipient_service.rb b/app/services/notification_recipient_service.rb index d3447aa9951..628215b55fa 100644 --- a/app/services/notification_recipient_service.rb +++ b/app/services/notification_recipient_service.rb @@ -43,6 +43,7 @@ module NotificationRecipientService def target raise 'abstract' end + def project target.project end diff --git a/app/services/projects/lfs_pointers/lfs_download_service.rb b/app/services/projects/lfs_pointers/lfs_download_service.rb index 6ea43561d61..618c30b971f 100644 --- a/app/services/projects/lfs_pointers/lfs_download_service.rb +++ b/app/services/projects/lfs_pointers/lfs_download_service.rb @@ -22,7 +22,7 @@ module Projects private def download_and_save_file(file, sanitized_uri) - IO.copy_stream(open(sanitized_uri.sanitized_url, headers(sanitized_uri)), file) + IO.copy_stream(open(sanitized_uri.sanitized_url, headers(sanitized_uri)), file) # rubocop:disable Security/Open end def headers(sanitized_uri) |