Skip to content

Commit d1fd227

Browse files
committed
Prefer having parentheses
1 parent 01ecfc6 commit d1fd227

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ task :validate_sidebar_tree => [:build] do
5858
# nuanced case -- that the url must be an exact match for its target page.
5959

6060
def check_url(url)
61-
if url.end_with? "/" then
61+
if url.end_with?("/") then
6262
raise "Imprecise target url '#{url}' in sidebar (did you mean '#{url[..-2]}'?)\n\n" unless File.directory?("_site#{url}")
6363
else
6464
raise "Imprecise target url '#{url}' in sidebar (did you mean '#{url}/'?)\n\n" unless File.file?("_site#{url}.html")

0 commit comments

Comments
 (0)