Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
36408a64
Commit
36408a64
authored
Dec 13, 2019
by
Alex Kalderimis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use elvis-operator rather than #try
parent
ee46c405
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
ee/app/models/design_management/design.rb
ee/app/models/design_management/design.rb
+1
-3
ee/app/models/design_management/version.rb
ee/app/models/design_management/version.rb
+1
-1
No files found.
ee/app/models/design_management/design.rb
View file @
36408a64
...
...
@@ -107,9 +107,7 @@ module DesignManagement
end
def
diff_refs
strong_memoize
(
:diff_refs
)
do
head_version
.
try
(
:diff_refs
)
end
strong_memoize
(
:diff_refs
)
{
head_version
&
.
diff_refs
}
end
def
clear_version_cache
...
...
ee/app/models/design_management/version.rb
View file @
36408a64
...
...
@@ -105,7 +105,7 @@ module DesignManagement
end
def
diff_refs
strong_memoize
(
:diff_refs
)
{
commit
.
try
(
:diff_refs
)
}
strong_memoize
(
:diff_refs
)
{
commit
&
.
diff_refs
}
end
def
reset
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment