Skip to content

Commit

Permalink
#362 rubocop up
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jun 27, 2022
1 parent dc7dbde commit 49f7777
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ gem 'pdd', '0.20.8'
gem 'rack', '2.2.3.1'
gem 'rack-test', '2.0.0'
gem 'rake', '13.0.6', require: false
gem 'rubocop', '1.30.1', require: false
gem 'rubocop', '1.31.0', require: false
gem 'rubocop-rspec', '2.11.1', require: false
gem 'ruby-fann'
gem 'sass', '3.7.4'
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ GEM
ffi (~> 1.0)
regexp_parser (2.5.0)
rexml (3.2.5)
rubocop (1.30.1)
rubocop (1.31.0)
parallel (~> 1.10)
parser (>= 3.1.0.0)
rainbow (>= 2.2.2, < 4.0)
Expand Down Expand Up @@ -193,7 +193,7 @@ DEPENDENCIES
rack (= 2.2.3.1)
rack-test (= 2.0.0)
rake (= 13.0.6)
rubocop (= 1.30.1)
rubocop (= 1.31.0)
rubocop-rspec (= 2.11.1)
ruby-fann
sass (= 3.7.4)
Expand Down
4 changes: 2 additions & 2 deletions features/step_definitions/steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
Before do
@cwd = Dir.pwd
@dir = Dir.mktmpdir('test')
FileUtils.mkdir_p(@dir) unless File.exist?(@dir)
FileUtils.mkdir_p(@dir)
Dir.chdir(@dir)
end

After do
Dir.chdir(@cwd)
FileUtils.rm_rf(@dir) if File.exist?(@dir)
FileUtils.rm_rf(@dir)
end
2 changes: 1 addition & 1 deletion objects/storage/cached_storage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def load
end

def save(xml)
File.delete(@file) if File.exist?(@file)
FileUtils.rm_rf(@file)
@origin.save(xml)
write(xml.to_s)
end
Expand Down

0 comments on commit 49f7777

Please sign in to comment.