Skip to content

Commit

Permalink
Updated keyword argument usage to remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jlevers authored and eggcaker committed Apr 13, 2020
1 parent 024b7f0 commit cadd906
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/jekyll-org.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ def org_file?
## override: read file & parse YAML... in this case, don't parse YAML
# see also: https://github.com/jekyll/jekyll/blob/master/lib/jekyll/document.rb
def read_content(opts = {})
return super unless org_file? # defer to default behaviour when not org file
return super(**opts) unless org_file? # defer to default behaviour when not org file

self.content = File.read(path, Utils.merged_file_read_opts(site, opts))
self.content = File.read(path, **Utils.merged_file_read_opts(site, opts))
converter = site.find_converter_instance(Jekyll::Converters::Org)
parser, settings = converter.parse_org(self.content)

Expand All @@ -42,7 +42,7 @@ def read_yaml(base, name, opts = {})

self.data ||= Hash.new()
self.content = File.read(@path || site.in_source_dir(base, name),
Utils.merged_file_read_opts(site, opts))
**Utils.merged_file_read_opts(site, opts))
converter = site.find_converter_instance(Jekyll::Converters::Org)
parser, settings = converter.parse_org(self.content)

Expand Down

0 comments on commit cadd906

Please sign in to comment.