chore: codacy

This commit is contained in:
Andrey Melnikov
2020-12-31 23:33:42 -08:00
parent a8f5cde75e
commit 5669d03c5c

View File

@@ -86,11 +86,11 @@ func LogEntryFromLine(line *string) *LogEntry {
timestamp, err := time.Parse(time.RFC3339, parts[0])
if err != nil {
return &LogEntry{Content: *line}
} else {
return &LogEntry{
Timestamp: timestamp,
Content: strings.Join(parts[1:], " "),
}
}
return &LogEntry{
Timestamp: timestamp,
Content: strings.Join(parts[1:], " "),
}
}