diff options
author | Semyon Pupkov <mail@semyonpupkov.com> | 2019-01-16 10:48:12 +0500 |
---|---|---|
committer | Semyon Pupkov <mail@semyonpupkov.com> | 2019-01-16 13:53:04 +0500 |
commit | c379973bceccbcd7b554f4a9c7026aca7cba4618 (patch) | |
tree | c2f4fc001f45459139f1f41732595707bdd69801 /app/models/external_issue.rb | |
parent | a2b26577220643a865212cb297a2bf12338176ea (diff) | |
download | gitlab-ce-c379973bceccbcd7b554f4a9c7026aca7cba4618.tar.gz |
chore(rubocop): fix Style/TrivialAccessors issues
Diffstat (limited to 'app/models/external_issue.rb')
-rw-r--r-- | app/models/external_issue.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/app/models/external_issue.rb b/app/models/external_issue.rb index 4f73beaafc5..68b2353556e 100644 --- a/app/models/external_issue.rb +++ b/app/models/external_issue.rb @@ -3,6 +3,8 @@ class ExternalIssue include Referable + attr_reader :project + def initialize(issue_identifier, project) @issue_identifier, @project = issue_identifier, project end @@ -32,12 +34,8 @@ class ExternalIssue [self.class, to_s].hash end - def project - @project - end - def project_id - @project.id + project.id end def to_reference(_from = nil, full: nil) |