remove parentheses around arguments to raise (#6532)
Merge pull request 6532
This commit is contained in:
parent
4b675aa1ea
commit
a2e48ebba3
|
@ -122,10 +122,8 @@ module Jekyll
|
||||||
dest_pathname = Pathname.new(dest)
|
dest_pathname = Pathname.new(dest)
|
||||||
Pathname.new(source).ascend do |path|
|
Pathname.new(source).ascend do |path|
|
||||||
if path == dest_pathname
|
if path == dest_pathname
|
||||||
raise(
|
raise Errors::FatalException,
|
||||||
Errors::FatalException,
|
|
||||||
"Destination directory cannot be or contain the Source directory."
|
"Destination directory cannot be or contain the Source directory."
|
||||||
)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue