Skip to content

Commit 8325ed7

Browse files
authored
Fix OpenJDK scraper
1 parent b5bd218 commit 8325ed7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/docs/core/scrapers/file_scraper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def assert_source_directory_exists
2929

3030
def request_one(url)
3131
assert_source_directory_exists
32-
Response.new read_file(url_to_path(url)), URL.parse(url)
32+
Response.new read_file(File.join(source_directory, url_to_path(url))), URL.parse(url)
3333
end
3434

3535
def request_all(urls)
@@ -50,7 +50,7 @@ def url_to_path(url)
5050
end
5151

5252
def read_file(path)
53-
File.read(File.join(source_directory, path))
53+
File.read(path)
5454
rescue
5555
instrument 'warn.doc', msg: "Failed to open file: #{path}"
5656
nil

0 commit comments

Comments
 (0)