[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.6-25-g9f1f17b

sunnavy at bestpractical.com sunnavy at bestpractical.com
Fri Oct 23 09:08:59 EDT 2009


The branch, 3.8-trunk has been updated
       via  9f1f17b61421d643f477232149fab33fb456c2c0 (commit)
      from  e05230b35cc4ef99e5f869d1b14a1ecccc7acb5f (commit)

Summary of changes:
 lib/RT/Interface/Web.pm |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

- Log -----------------------------------------------------------------
commit 9f1f17b61421d643f477232149fab33fb456c2c0
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Fri Oct 23 21:08:48 2009 +0800

    remove needless lines

diff --git a/lib/RT/Interface/Web.pm b/lib/RT/Interface/Web.pm
index 07f3358..b82b638 100755
--- a/lib/RT/Interface/Web.pm
+++ b/lib/RT/Interface/Web.pm
@@ -605,9 +605,6 @@ sub StripContent {
     my $html = $args{ContentType} && $args{ContentType} eq "text/html";
     my $sigonly = $args{StripSignature};
 
-    # Save us from undef warnings
-    return '' unless defined $content;
-
     # massage content to easily detect if there's any real content
     $content =~ s/\s+//g; # yes! remove all the spaces
     if ( $html ) {

-----------------------------------------------------------------------


More information about the Rt-commit mailing list