Skip to content

Commit 3527106

Browse files
committed
fix
1 parent 635cafa commit 3527106

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

resources/asciidoctor/lib/chunker/url_to_v3.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def initialize(doc)
1313
# raise ArgumentError, "Missing required attribute 'current-url'" if current_url.nil?
1414
# raise ArgumentError, "Missing required attribute 'outdir'" if outdir.nil?
1515

16-
Hardcoded file path
16+
# Hardcoded file path
1717
file_path = File.expand_path('v3-mapping.json', __dir__)
1818
# Read content from the specified file and convert it to a dictionary
1919
mapping = JSON.parse(File.read(file_path)) if File.exist?(file_path)
@@ -30,7 +30,6 @@ def initialize(doc)
3030

3131
actual_url = '/guide' + path_dir + '/*/' + current_url
3232

33-
3433
if mapping.key?(actual_url)
3534
new_url = mapping[actual_url]
3635
else

0 commit comments

Comments
 (0)