From: derek Date: Mon, 17 Oct 2011 19:55:12 +0000 (-0400) Subject: Removed some debugging 'error string' messages that snuck into last X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=8b4c010999a8d0c482d84bbf17c98dc4bbae02b7;hp=c3a7c31347d42a926214e2508d713975d124e8c6;p=bamtools.git Removed some debugging 'error string' messages that snuck into last commit --- diff --git a/src/api/BamAlignment.cpp b/src/api/BamAlignment.cpp index c95e896..0b13fb4 100644 --- a/src/api/BamAlignment.cpp +++ b/src/api/BamAlignment.cpp @@ -2,7 +2,7 @@ // BamAlignment.cpp (c) 2009 Derek Barnett // Marth Lab, Department of Biology, Boston College // --------------------------------------------------------------------------- -// Last modified: 13 October 2011 (DB) +// Last modified: 17 October 2011 (DB) // --------------------------------------------------------------------------- // Provides the BamAlignment data structure // *************************************************************************** @@ -365,18 +365,9 @@ bool BamAlignment::FindTag(const std::string& tag, return true; // get the storage class and find the next tag - if ( *pTagStorageType == '\0' ) { - ErrorString = "unexpected null found - 1"; - return false; - } - if ( !SkipToNextTag(*pTagStorageType, pTagData, numBytesParsed) ) { - ErrorString = "could not skip to next tag"; - return false; - } - if ( *pTagData == '\0' ) { - ErrorString = "unexpected null found - 2"; - return false; - } + if ( *pTagStorageType == '\0' ) return false; + if ( !SkipToNextTag(*pTagStorageType, pTagData, numBytesParsed) ) return false; + if ( *pTagData == '\0' ) return false; } // checked all tags, none match