Skip to content

Commit

Permalink
remove unused statement
Browse files Browse the repository at this point in the history
  • Loading branch information
marianopinto committed Nov 17, 2023
1 parent ce9ca1a commit 8f84439
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,6 @@ func (ps *PubSub) Publisher(config map[string]interface{}) *pubsub.Client {
}

func (ps *PubSub) Publish(ctx context.Context, p *pubsub.Client, topic, msg string) error {
//state := lib.GetScenarioState(ctx)
//
//if state == nil {
// err := errors.New("xk6-pubsub: state is nil")
// ReportError(err, "cannot determine state")
// return err
//}

t := p.Topic(topic)
r := t.Publish(
ctx,
Expand Down

0 comments on commit 8f84439

Please sign in to comment.