[interchange-cvs] interchange - jon modified lib/Vend/Dispatch.pm

interchange-cvs at icdevgroup.org interchange-cvs at icdevgroup.org
Mon Sep 27 09:27:29 EDT 2004


User:      jon
Date:      2004-09-27 13:27:29 GMT
Modified:  lib/Vend Dispatch.pm
Log:
Simplify logic as per Paul Vinciguerra's observation.

Revision  Changes    Path
1.44      +5 -7      interchange/lib/Vend/Dispatch.pm


rev 1.44, prev_rev 1.43
Index: Dispatch.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Dispatch.pm,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -u -r1.43 -r1.44
--- Dispatch.pm	25 Sep 2004 23:32:28 -0000	1.43
+++ Dispatch.pm	27 Sep 2004 13:27:28 -0000	1.44
@@ -1,6 +1,6 @@
 # Vend::Dispatch - Handle Interchange page requests
 #
-# $Id: Dispatch.pm,v 1.43 2004/09/25 23:32:28 jon Exp $
+# $Id: Dispatch.pm,v 1.44 2004/09/27 13:27:28 jon Exp $
 #
 # Copyright (C) 2002-2003 Interchange Development Group
 # Copyright (C) 2002 Mike Heins <mike at perusion.net>
@@ -26,7 +26,7 @@
 package Vend::Dispatch;
 
 use vars qw($VERSION);
-$VERSION = substr(q$Revision: 1.43 $, 10);
+$VERSION = substr(q$Revision: 1.44 $, 10);
 
 use POSIX qw(strftime);
 use Vend::Util;
@@ -69,11 +69,9 @@
 sub response {
 	my $possible = shift;
 	return if $Vend::Sent;
-	if($::Pragma->{download}) {
-		# do nothing
-	}
-	elsif(defined $possible) {
-		push @Vend::Output, ( ref $possible ? $possible : \$possible);
+
+	if (defined $possible and ! $::Pragma->{download}) {
+		push @Vend::Output, (ref $possible ? $possible : \$possible);
 	}
 
 	if($::Pragma->{download}) {








More information about the interchange-cvs mailing list