revert due to gocyclo error
revert due to gocyclo error
@@ -136,27 +136,13 @@ func (r *Reader) parseLine() error {
return err
}
case batchHeaderPos:
- switch r.line[50: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
