about summary refs log tree commit diff stats
path: root/code/entry.rb
diff options
context:
space:
mode:
Diffstat (limited to 'code/entry.rb')
-rw-r--r--code/entry.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/code/entry.rb b/code/entry.rb
index bc0d2d7b..7a17bb65 100644
--- a/code/entry.rb
+++ b/code/entry.rb
@@ -27,7 +27,6 @@ class Directory::Entry
 			@basename = File.basename(dirname)
 		end
 		@name, @ext = @basename.split_at_last_dot
-#			@ext = @basename.from_last('.') || ''
 		@movie = MOVIE_EXTENSIONS.include?(@ext)
 		@size = 0
 		@exists = false
@@ -65,7 +64,7 @@ class Directory::Entry
 
 	def handler()
 		## get_handler has to be defined in another file
-		@handler = catch(:use) do
+		@handler ||= catch(:use) do
 			get_handler
 		end
 	end