Update comments

This commit is contained in:
Alex Ling 2021-09-18 02:24:50 +00:00
parent 3f73591dd4
commit 16397050dd
2 changed files with 1 additions and 2 deletions

View File

@ -80,7 +80,7 @@ class Title
# - When the title exists and its contents signature is still the same, we # - When the title exists and its contents signature is still the same, we
# return true so it can be reused without rescanning # return true so it can be reused without rescanning
def examine(context : ExamineContext) : Bool def examine(context : ExamineContext) : Bool
return false unless Dir.exists? @dir # No title, Remove this return false unless Dir.exists? @dir
contents_signature = Dir.contents_signature @dir, contents_signature = Dir.contents_signature @dir,
context["cached_contents_signature"] context["cached_contents_signature"]
return true if @contents_signature == contents_signature return true if @contents_signature == contents_signature

View File

@ -438,7 +438,6 @@ class Storage
get_db do |db| get_db do |db|
# Detect dangling entry IDs # Detect dangling entry IDs
trash_ids = [] of String trash_ids = [] of String
# Use query builder instead?
query = "select path, id from ids where unavailable = 0" query = "select path, id from ids where unavailable = 0"
unless ids_candidates.nil? unless ids_candidates.nil?
query += " and id in (#{ids_candidates.join "," { |i| "'#{i}'" }})" query += " and id in (#{ids_candidates.join "," { |i| "'#{i}'" }})"