Skip to content

Commit

Permalink
task: update exe, remove unnecessary cop disabling
Browse files Browse the repository at this point in the history
  • Loading branch information
williamthom-as committed May 5, 2023
1 parent b16340d commit 31e019d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions exe/cure
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# frozen_string_literal: true

# rubocop:disable Style/MixinUsage
# rubocop:disable Style/MethodCalledOnDoEndBlock

require "cure"
require "optparse"
Expand Down Expand Up @@ -48,4 +47,3 @@ log_info "... set up complete. Beginning process"
main.run_export

# rubocop:enable Style/MixinUsage
# rubocop:enable Style/MethodCalledOnDoEndBlock
3 changes: 2 additions & 1 deletion lib/cure/helpers/file_helpers.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# frozen_string_literal: true

require "fileutils"
require "pathname"

module Cure
module Helpers
Expand Down Expand Up @@ -30,7 +31,7 @@ def read_file(file_location)
end

def open_file(file_location)
result = file_location.start_with?("/") ? file_location : File.join(File.dirname(__FILE__), file_location)
result = file_location.start_with?("/") ? file_location : Pathname.new(file_location)

raise "No file found at [#{file_location}]" unless File.exist? result.to_s

Expand Down

0 comments on commit 31e019d

Please sign in to comment.