about summary refs log tree commit diff stats
path: root/code/entry.rb
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-06-13 04:12:18 +0200
committerhut <hut@lavabit.com>2009-06-13 04:12:18 +0200
commitbd627dc4f2d009642de3ada13cbdc547490baf68 (patch)
tree116e882dd0d303cd8999e1a83c47965ba4a9458b /code/entry.rb
parentf55eb9bf0d7d2c252a6591324bfd8392d30c53da (diff)
downloadranger-bd627dc4f2d009642de3ada13cbdc547490baf68.tar.gz
fixing & cleaning up
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