Fix Reader.go megacheck issue
Fix Reader.go megacheck issue
@@ -136,28 +136,13 @@ func (r *Reader) parseLine() error {
return err
}
case batchHeaderPos:
- switch r.line[49:53] {
- case "IAT":
- if err := r.parseIATBatchHeader(); err != nil {
- return err
- }
- default:
if err := r.parseBatchHeader(); err != nil {
return err
}
- }
case entryDetailPos:
- switch r.line[16:29] {
-
- case " ":
- if err := r.parseIATEntryDetail(); err != nil {
- return err
- }
- default:
if err := r.parseEntryDetail(); err != nil {
return err
}
- }
case entryAddendaPos:
if err := r.parseAddenda(); err != nil {
return err
@@ -227,6 +212,8 @@ func (r *Reader) parseBatchHeader() error {
return nil
}
+
+
// parseEntryDetail takes the input record string and parses the EntryDetailRecord values
func (r *Reader) parseEntryDetail() error {
r.recordName = "EntryDetail"
