diff options
author | James McKinney <james@slashpoundbang.com> | 2015-05-21 14:15:30 +0200 |
---|---|---|
committer | James McKinney <james@slashpoundbang.com> | 2015-05-21 14:15:30 +0200 |
commit | ef97ebe2b9b12f5c44a9382b7a81cfca765c1696 (patch) | |
tree | 8d3541c04d8ee48333ab401bb7fc8d5e9adbd0b2 /lib/acts_as_xapian/tasks | |
parent | fa1e0757634656414a8fb62d8bcf1ec0717537df (diff) |
Avoid unnecessary ternary operations
Diffstat (limited to 'lib/acts_as_xapian/tasks')
-rw-r--r-- | lib/acts_as_xapian/tasks/xapian.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/acts_as_xapian/tasks/xapian.rake b/lib/acts_as_xapian/tasks/xapian.rake index c1986ce1e..52d94011a 100644 --- a/lib/acts_as_xapian/tasks/xapian.rake +++ b/lib/acts_as_xapian/tasks/xapian.rake @@ -9,7 +9,7 @@ namespace :xapian do # "verbose=true" to print model name as it is run. desc 'Updates Xapian search index with changes to models since last call' task :update_index => :environment do - ActsAsXapian.update_index(ENV['flush'] ? true : false, ENV['verbose'] ? true : false) + ActsAsXapian.update_index(ENV['flush'], ENV['verbose']) end # Parameters - specify 'models="PublicBody User"' to say which models |