Rubocop: Style/Semicolon
- Do not use semicolons to terminate expressions
This commit is contained in:
parent
31dd0ebed5
commit
44d2995277
|
@ -79,7 +79,8 @@ module Jekyll
|
||||||
return [] unless exists?
|
return [] unless exists?
|
||||||
@entries ||=
|
@entries ||=
|
||||||
Utils.safe_glob(collection_dir, ["**", "*.*"]).map do |entry|
|
Utils.safe_glob(collection_dir, ["**", "*.*"]).map do |entry|
|
||||||
entry["#{collection_dir}/"] = ''; entry
|
entry["#{collection_dir}/"] = ''
|
||||||
|
entry
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -168,7 +168,8 @@ module Jekyll
|
||||||
raise RuntimeError, "--ssl-cert or --ssl-key missing."
|
raise RuntimeError, "--ssl-cert or --ssl-key missing."
|
||||||
end
|
end
|
||||||
|
|
||||||
require "openssl"; require "webrick/https"
|
require "openssl"
|
||||||
|
require "webrick/https"
|
||||||
source_key = Jekyll.sanitized_path(opts[:JekyllOptions]["source"], opts[:JekyllOptions]["ssl_key" ])
|
source_key = Jekyll.sanitized_path(opts[:JekyllOptions]["source"], opts[:JekyllOptions]["ssl_key" ])
|
||||||
source_certificate = Jekyll.sanitized_path(opts[:JekyllOptions]["source"], opts[:JekyllOptions]["ssl_cert"])
|
source_certificate = Jekyll.sanitized_path(opts[:JekyllOptions]["source"], opts[:JekyllOptions]["ssl_cert"])
|
||||||
opts[:SSLCertificate] = OpenSSL::X509::Certificate.new(File.read(source_certificate))
|
opts[:SSLCertificate] = OpenSSL::X509::Certificate.new(File.read(source_certificate))
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Jekyll
|
||||||
@file = matched['variable'].strip
|
@file = matched['variable'].strip
|
||||||
@params = matched['params'].strip
|
@params = matched['params'].strip
|
||||||
else
|
else
|
||||||
@file, @params = markup.strip.split(' ', 2);
|
@file, @params = markup.strip.split(' ', 2)
|
||||||
end
|
end
|
||||||
validate_params if @params
|
validate_params if @params
|
||||||
@tag_name = tag_name
|
@tag_name = tag_name
|
||||||
|
|
Loading…
Reference in New Issue