mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-20 17:54:30 +08:00
remove redundant code
This commit is contained in:
@@ -76,10 +76,8 @@ func (r *qifDataReader) read(ctx core.Context) (*qifData, error) {
|
|||||||
} else if strings.Index(line, qifTypeHeaderPrefix) == 0 {
|
} else if strings.Index(line, qifTypeHeaderPrefix) == 0 {
|
||||||
currentEntryHeader = line
|
currentEntryHeader = line
|
||||||
log.Warnf(ctx, "[qif_data_reader.read] read unsupported entry header line \"%s\" and skip the following entries", line)
|
log.Warnf(ctx, "[qif_data_reader.read] read unsupported entry header line \"%s\" and skip the following entries", line)
|
||||||
continue
|
|
||||||
} else {
|
} else {
|
||||||
log.Warnf(ctx, "[qif_data_reader.read] read unsupported entry header line \"%s\" and skip this line", line)
|
log.Warnf(ctx, "[qif_data_reader.read] read unsupported entry header line \"%s\" and skip this line", line)
|
||||||
continue
|
|
||||||
}
|
}
|
||||||
} else if line[0] == qifEntryEnd {
|
} else if line[0] == qifEntryEnd {
|
||||||
entryData := currentEntryData
|
entryData := currentEntryData
|
||||||
@@ -178,13 +176,11 @@ func (r *qifDataReader) read(ctx core.Context) (*qifData, error) {
|
|||||||
data.classes = append(data.classes, classData)
|
data.classes = append(data.classes, classData)
|
||||||
} else {
|
} else {
|
||||||
log.Warnf(ctx, "[qif_data_reader.read] read unsupported entry header \"%s\" and skip this entry", currentEntryHeader)
|
log.Warnf(ctx, "[qif_data_reader.read] read unsupported entry header \"%s\" and skip this entry", currentEntryHeader)
|
||||||
continue
|
|
||||||
}
|
}
|
||||||
} else if currentEntryHeader != "" {
|
} else if currentEntryHeader != "" {
|
||||||
currentEntryData = append(currentEntryData, line)
|
currentEntryData = append(currentEntryData, line)
|
||||||
} else {
|
} else {
|
||||||
log.Warnf(ctx, "[qif_data_reader.read] read unsupported line \"%s\" and skip this line", line)
|
log.Warnf(ctx, "[qif_data_reader.read] read unsupported line \"%s\" and skip this line", line)
|
||||||
continue
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user