Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
aldy505 committed Sep 4, 2024
1 parent 15aa59a commit 099dad4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions httpclient/sentryhttpclient_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,7 @@ func TestIntegration(t *testing.T) {
}
}

if foundMatch {
continue
} else {
if !foundMatch {
t.Errorf("Span mismatch (-want +got):\n%s", strings.Join(diffs, "\n"))
}
}
Expand Down
6 changes: 2 additions & 4 deletions tracing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1099,10 +1099,8 @@ func TestGetSpanFromContext(t *testing.T) {
value := GetSpanFromContext(span.Context())
if value == nil {
t.Error("expecting `value` to be not nil")
} else {
if span.Op != "something" {
t.Errorf("expecting `span.Op` to be 'something', instead got %q", span.Op)
}
} else if span.Op != "something" {
t.Errorf("expecting `span.Op` to be 'something', instead got %q", span.Op)
}
})

Expand Down

0 comments on commit 099dad4

Please sign in to comment.