diff --git a/fleprocess/braketedData.go b/fleprocess/braketedData.go index 01c4d11..340e859 100644 --- a/fleprocess/braketedData.go +++ b/fleprocess/braketedData.go @@ -29,7 +29,7 @@ const ( QSL ) -func getBraketedData(inputLine string, braketType BraketType) (braketedData, cleanedLine string) { +func getBracketedData(inputLine string, braketType BraketType) (braketedData, cleanedLine string) { // Get substring between two strings. a := "" b := "" diff --git a/fleprocess/braketedData_test.go b/fleprocess/braketedData_test.go index a6d3afa..4841720 100644 --- a/fleprocess/braketedData_test.go +++ b/fleprocess/braketedData_test.go @@ -74,7 +74,7 @@ func Test_getBraketedData(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - gotBraketedData, gotCleanedLine := getBraketedData(tt.args.inputLine, tt.args.braketType) + gotBraketedData, gotCleanedLine := getBracketedData(tt.args.inputLine, tt.args.braketType) if gotBraketedData != tt.wantBraketedData { t.Errorf("getBraketedData() gotBraketedData = %v, want %v", gotBraketedData, tt.wantBraketedData) } diff --git a/fleprocess/load_file.go b/fleprocess/load_file.go index c301d77..f5aeccf 100644 --- a/fleprocess/load_file.go +++ b/fleprocess/load_file.go @@ -338,7 +338,7 @@ func LoadFile(inputFilename string, isInterpolateTime bool) (filleFullLog []LogL } //store the current logline so that it can be used as a model when parsing the next line - // and reset the firstline flag + // and reset the FirstLine flag previousLogLine = logline headerIsFirstLine = false diff --git a/fleprocess/parse_line.go b/fleprocess/parse_line.go index 0d16d9f..5ab3265 100644 --- a/fleprocess/parse_line.go +++ b/fleprocess/parse_line.go @@ -98,12 +98,12 @@ func ParseLine(inputStr string, previousLine LogLine) (logLine LogLine, errorMsg //TODO: what happens when we have <> or when there are multiple comments //TODO: Refactor this! it is ugly - comment, inputStr := getBraketedData(inputStr, COMMENT) + comment, inputStr := getBracketedData(inputStr, COMMENT) if comment != "" { logLine.Comment = comment } - QSLmsg, inputStr := getBraketedData(inputStr, QSL) + QSLmsg, inputStr := getBracketedData(inputStr, QSL) if QSLmsg != "" { logLine.QSLmsg = QSLmsg } @@ -125,7 +125,7 @@ func ParseLine(inputStr string, previousLine LogLine) (logLine LogLine, errorMsg logLine.RSTrcvd = defaultReport } else { - errorMsg = errorMsg + "Double definitiion of RST" + errorMsg = errorMsg + "Double definition of RST" } continue } @@ -295,7 +295,7 @@ func ParseLine(inputStr string, previousLine LogLine) (logLine LogLine, errorMsg // If the "wwff" keyword is used, skip it if regexpIsWwffKeyWord.MatchString(element) { - // this keyword is not requiered anymore with FLE 3 and doesn't add any value + // this keyword is not required anymore with FLE 3 and doesn't add any value continue } @@ -308,7 +308,7 @@ func ParseLine(inputStr string, previousLine LogLine) (logLine LogLine, errorMsg // If the "pota" keyword is used, skip it if regexpIsPotaKeyWord.MatchString(element) { - // this keyword is not requiered anymore with FLE 3 and doesn't add any value + // this keyword is not required anymore with FLE 3 and doesn't add any value continue } @@ -321,7 +321,7 @@ func ParseLine(inputStr string, previousLine LogLine) (logLine LogLine, errorMsg // If the "sota" keyword is used, skip it if regexpIsSotaKeyWord.MatchString(element) { - // this keyword is not requiered anymore with FLE 3 and doesn't add any value + // this keyword is not required anymore with FLE 3 and doesn't add any value continue }