From 16397050dd7604b0ab2f21aec3a573041052cd90 Mon Sep 17 00:00:00 2001 From: Alex Ling Date: Sat, 18 Sep 2021 02:24:50 +0000 Subject: [PATCH] Update comments --- src/library/title.cr | 2 +- src/storage.cr | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/library/title.cr b/src/library/title.cr index 1709e9b..7efee42 100644 --- a/src/library/title.cr +++ b/src/library/title.cr @@ -80,7 +80,7 @@ class Title # - When the title exists and its contents signature is still the same, we # return true so it can be reused without rescanning 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, context["cached_contents_signature"] return true if @contents_signature == contents_signature diff --git a/src/storage.cr b/src/storage.cr index eea5927..32f446a 100644 --- a/src/storage.cr +++ b/src/storage.cr @@ -438,7 +438,6 @@ class Storage get_db do |db| # Detect dangling entry IDs trash_ids = [] of String - # Use query builder instead? query = "select path, id from ids where unavailable = 0" unless ids_candidates.nil? query += " and id in (#{ids_candidates.join "," { |i| "'#{i}'" }})"