]> gitweb.michael.orlitzky.com - dead/whatever-dl.git/commitdiff
Fix an unused variable warning.
authorMichael Orlitzky <michael@orlitzky.com>
Mon, 9 Dec 2013 16:23:37 +0000 (11:23 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 9 Dec 2013 16:23:37 +0000 (11:23 -0500)
lib/whatever-dl/websites/pornhd.rb

index b841f5ad7607b51ad0fd7737793ce10f535cb15c..0ce6099c0b7d3479570d33f36758f507e40490bc 100644 (file)
@@ -37,7 +37,7 @@ class Pornhd < Website
   def get_video_filename()
     # Use whatever comes after the final frontslash in the main URL,
     # not the video URL. Assume it's an FLV.
   def get_video_filename()
     # Use whatever comes after the final frontslash in the main URL,
     # not the video URL. Assume it's an FLV.
-    filename = @url.split('/').pop() + '.flv'
+    return @url.split('/').pop() + '.flv'
   end
 
   protected;
   end
 
   protected;