Skip to content

Commit

Permalink
PMM-13054 code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff committed Jun 20, 2024
1 parent 4078869 commit a96231a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions managed/services/supervisord/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ func readLog(name string, maxLines int) ([]byte, time.Time, error) {
}
}

res := make([]byte, 0, maxLines)
res := []byte{}
r.Do(func(v interface{}) {
if v != nil {
res = append(res, v.([]byte)...) //nolint:forcetypeassert
Expand All @@ -341,7 +341,6 @@ func readLogUnlimited(name string) ([]byte, time.Time, error) {
m = fi.ModTime()

res := []byte{}

reader := bufio.NewReader(f)
for {
b, err := reader.ReadBytes('\n')
Expand Down

0 comments on commit a96231a

Please sign in to comment.