]> git.donarmstrong.com Git - bamtools.git/commitdiff
Removed some debugging 'error string' messages that snuck into last
authorderek <derekwbarnett@gmail.com>
Mon, 17 Oct 2011 19:55:12 +0000 (15:55 -0400)
committerderek <derekwbarnett@gmail.com>
Mon, 17 Oct 2011 19:55:12 +0000 (15:55 -0400)
commit

src/api/BamAlignment.cpp

index c95e896c7333d527d726c953a7fcd660f7f42ffc..0b13fb4121786277de72218c676fc29f38c4d648 100644 (file)
@@ -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