Skip to content

Commit

Permalink
Changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
JiriCtvrtka committed Jan 8, 2024
1 parent f3e201b commit 36670b6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion admin/commands/summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ func (cmd *SummaryCommand) makeArchive(ctx context.Context, globals *flags.Globa
addServerData(ctx, zipW, cmd.Pprof)
}

return err
return nil
}

// RunCmdWithContext runs summary command.
Expand Down
3 changes: 1 addition & 2 deletions agent/agents/process/process_logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ func (pl *processLogger) Write(p []byte) (int, error) {
line, err = b.ReadString('\n')
if err != nil {
pl.buf = []byte(line)
err = nil
return n, err
return n, nil
}
line = strings.TrimSuffix(line, "\n")
if pl.replacer != nil {
Expand Down
2 changes: 1 addition & 1 deletion managed/models/service_helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func TestServiceHelpers(t *testing.T) {
require.NoError(t, q.Insert(str))
}

teardown = func(t *testing.T) {
teardown := func(t *testing.T) {
t.Helper()
require.NoError(t, tx.Rollback())
}
Expand Down
1 change: 1 addition & 0 deletions managed/utils/interceptors/interceptors.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func logRequest(l *logrus.Entry, prefix string, f func() error) error {
}
}()

err = f()
return f()
}

Expand Down
1 change: 1 addition & 0 deletions qan-api2/utils/interceptors/interceptors.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func logRequest(l *logrus.Entry, prefix string, f func() error) error {
}
}()

err = f()
return f()
}

Expand Down

0 comments on commit 36670b6

Please sign in to comment.