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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
6ac0a142
Commit
6ac0a142
authored
Jul 26, 2017
by
Pawel Chojnacki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary begin/end
parent
7ce0a61a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
lib/gitlab/health_checks/fs_shards_check.rb
lib/gitlab/health_checks/fs_shards_check.rb
+4
-6
No files found.
lib/gitlab/health_checks/fs_shards_check.rb
View file @
6ac0a142
...
...
@@ -67,12 +67,10 @@ module Gitlab
end
def
with_temp_file
(
storage_name
)
begin
temp_file_path
=
Dir
::
Tmpname
.
create
(
%w(fs_shards_check +deleted)
,
storage_path
(
storage_name
))
{
|
path
|
path
}
yield
temp_file_path
ensure
delete_test_file
(
temp_file_path
)
end
temp_file_path
=
Dir
::
Tmpname
.
create
(
%w(fs_shards_check +deleted)
,
storage_path
(
storage_name
))
{
|
path
|
path
}
yield
temp_file_path
ensure
delete_test_file
(
temp_file_path
)
end
def
storage_path
(
storage_name
)
...
...
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