diff options
author | Valery Sizov <valery@gitlab.com> | 2016-07-06 16:26:59 +0300 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2016-07-06 17:44:27 +0300 |
commit | c14acda909a6b463a29069568be803c78a2f9b46 (patch) | |
tree | b985bac8f28fabfa52d61e0e3c7535bf9c917fe5 /app/services/base_service.rb | |
parent | cfd5870b62e9d76e564ffc64db1d1281b4a363bb (diff) | |
download | gitlab-ce-c14acda909a6b463a29069568be803c78a2f9b46.tar.gz |
Services: code style fixes, minor refactoringservices_refactoring
Diffstat (limited to 'app/services/base_service.rb')
-rw-r--r-- | app/services/base_service.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/app/services/base_service.rb b/app/services/base_service.rb index 0d55ba5a981..b57f1f5c18b 100644 --- a/app/services/base_service.rb +++ b/app/services/base_service.rb @@ -51,13 +51,11 @@ class BaseService private def error(message, http_status = nil) - result = { + { message: message, - status: :error + status: :error, + http_status: (http_status if http_status) } - - result[:http_status] = http_status if http_status - result end def success |