Correct duplicate code
# Remove duplicate variable assignments
@@ -159,13 +159,6 @@ public class GNPSExportTask extends AbstractTask {
}
if (msmsScanNumber >= 1) {
-
- // Best peak always exists, because peak list row has at least one peak
- Feature bestPeak = row.getBestPeak();
-
- // Get the MS/MS scan number
- int msmsScanNumber = bestPeak.getMostIntenseFragmentScanNumber();
- if (msmsScanNumber >= 1) {
// MS/MS scan must exist, because msmsScanNumber was > 0
Scan msmsScan = bestPeak.getDataFile().getScan(msmsScanNumber);
