From 6166c33a38393765738f80a3d5b8104fc6772270 Mon Sep 17 00:00:00 2001 From: Vadim Belman Date: Wed, 13 Jan 2016 19:50:36 -0500 Subject: [PATCH] Item13897: Removed buggy ASSERT Never failed because of a mistype but breaks valid test when mistype gets corrected. --- core/lib/Foswiki/Address.pm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/core/lib/Foswiki/Address.pm b/core/lib/Foswiki/Address.pm index 281e045d52..c41d1dd728 100644 --- a/core/lib/Foswiki/Address.pm +++ b/core/lib/Foswiki/Address.pm @@ -1609,10 +1609,12 @@ sub isValid { ASSERT( ref( $this->tompath ) eq 'ARRAY' and scalar( @{ $this->tompath } ) ) if DEBUG; - ASSERT( - not( $this->tompath->[0] - and $this->tompath->[0] eq 'attachment' ) - ) if DEBUG; + +# vrurg This ASSERT had a mistype in non-Moo version which was making it harmless. In fact, it seems to be incorrect. +#ASSERT( +# not( $this->tompath->[0] +# and $this->tompath->[0] eq 'attachment' ) +#) if DEBUG; ASSERT( $pathtypes{ $this->tompath->[0] } ) if DEBUG; $this->_type( $pathtypes{ $this->tompath->[0] } ->{ scalar( @{ $this->tompath } ) } );