diff app/controllers/pastes_controller.rb @ 49:c09020fc73f5

Empty rescue instead of random nil.
author Edho Arief <edho@myconan.net>
date Thu, 04 Oct 2012 03:08:00 +0700
parents f649b46fca4f
children 817c54a72b58
line wrap: on
line diff
--- a/app/controllers/pastes_controller.rb	Thu Oct 04 03:05:43 2012 +0700
+++ b/app/controllers/pastes_controller.rb	Thu Oct 04 03:08:00 2012 +0700
@@ -18,7 +18,6 @@
     begin
       @paste.paste = Paste.find(params[:base]).paste
     rescue
-      nil
     end
 
     respond_to do |format|