JAL-1541 BioJs MSA Viewer export option implementation
[jalview.git] / src / MCview / PDBfile.java
index 132aea8..a99f172 100755 (executable)
@@ -331,17 +331,11 @@ public class PDBfile extends jalview.io.AlignFile
         {
           if (sq.getDatasetSequence() != null)
           {
-            if (sq.getDatasetSequence().getPDBId() != null)
-            {
-              sq.getDatasetSequence().getPDBId().clear();
-            }
+            sq.getDatasetSequence().getPDBId().clear();
           }
           else
           {
-            if (sq.getPDBId() != null)
-            {
-              sq.getPDBId().clear();
-            }
+            sq.getPDBId().clear();
           }
         }
         AlignSeq.replaceMatchingSeqsWith(seqs, annotations, prot, al, AlignSeq.PEP, false);
@@ -376,17 +370,11 @@ public class PDBfile extends jalview.io.AlignFile
         {
           if (sq.getDatasetSequence() != null)
           {
-            if (sq.getDatasetSequence().getPDBId() != null)
-            {
-              sq.getDatasetSequence().getPDBId().clear();
-            }
+            sq.getDatasetSequence().getPDBId().clear();
           }
           else
           {
-            if (sq.getPDBId() != null)
-            {
-              sq.getDatasetSequence().getPDBId().clear();
-            }
+            sq.getPDBId().clear();
           }
         }
         AlignSeq.replaceMatchingSeqsWith(seqs, annotations, rna, al, AlignSeq.DNA, false);