From 889f90015a43f261a5826d5c28dd027353832c3d Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sat, 26 Oct 2024 19:16:37 +0800 Subject: [PATCH] remove redundant code --- pkg/converters/qif/qif_data_reader.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/converters/qif/qif_data_reader.go b/pkg/converters/qif/qif_data_reader.go index 4cd2c877..47796527 100644 --- a/pkg/converters/qif/qif_data_reader.go +++ b/pkg/converters/qif/qif_data_reader.go @@ -76,10 +76,8 @@ func (r *qifDataReader) read(ctx core.Context) (*qifData, error) { } else if strings.Index(line, qifTypeHeaderPrefix) == 0 { currentEntryHeader = line log.Warnf(ctx, "[qif_data_reader.read] read unsupported entry header line \"%s\" and skip the following entries", line) - continue } else { log.Warnf(ctx, "[qif_data_reader.read] read unsupported entry header line \"%s\" and skip this line", line) - continue } } else if line[0] == qifEntryEnd { entryData := currentEntryData @@ -178,13 +176,11 @@ func (r *qifDataReader) read(ctx core.Context) (*qifData, error) { data.classes = append(data.classes, classData) } else { log.Warnf(ctx, "[qif_data_reader.read] read unsupported entry header \"%s\" and skip this entry", currentEntryHeader) - continue } } else if currentEntryHeader != "" { currentEntryData = append(currentEntryData, line) } else { log.Warnf(ctx, "[qif_data_reader.read] read unsupported line \"%s\" and skip this line", line) - continue } }