Skip to content

Commit

Permalink
Rename handling of internal full path construction
Browse files Browse the repository at this point in the history
* To not clash / be confusing with `resolved_path`.
  • Loading branch information
riccardoporreca committed Mar 14, 2023
1 parent d52d828 commit 6913d4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/html_proofer/attribute/url.rb
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,12 @@ def base64?
end

def absolute_path
path = resolve_path || @filename
path = full_path || @filename

File.expand_path(path, Dir.pwd)
end

def resolve_path
def full_path
return if path.nil? || path.empty?

base = if absolute_path?(path) # path relative to root
Expand Down

0 comments on commit 6913d4e

Please sign in to comment.