Browse files

Slight stylistic tweak to LSI initialisation.

Recommended-by: parkr
  • Loading branch information...
1 parent 85f2dff commit 68333cd221ad7f1c0138aa21481d76005f09842d @jashank jashank committed Jan 11, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/jekyll/post.rb
View
2 lib/jekyll/post.rb
@@ -163,7 +163,7 @@ def related_posts(posts)
if self.site.lsi
self.class.lsi ||= begin
puts "Starting the classifier..."
- lsi = Classifier::LSI.new :auto_rebuild => false
+ lsi = Classifier::LSI.new(:auto_rebuild => false)
$stdout.print(" Populating LSI... ");$stdout.flush
posts.each { |x| $stdout.print(".");$stdout.flush;lsi.add_item(x) }
$stdout.print("\n Rebuilding LSI index... ")

0 comments on commit 68333cd

Please sign in to comment.