mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-09-27 01:56:03 +08:00
chore: codacy
This commit is contained in:
10
pkg/types.go
10
pkg/types.go
@@ -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:], " "),
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user