Skip to content

Commit

Permalink
pubsublite: directly return nil
Browse files Browse the repository at this point in the history
The code implicitly returns this occurrence of err only if err = nil.
Change it to nil instead to reduce confusion.
  • Loading branch information
endorama committed Nov 9, 2023
1 parent c065652 commit 67be918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pubsublite/topiccreator.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,5 +159,5 @@ func (c *TopicCreator) createTopic(ctx context.Context, name string) error {
zap.Int("subscribe_capacity", c.cfg.SubscribeCapacityMiBPerSec),
zap.Duration("retention_duration", c.cfg.RetentionDuration),
)
return err
return nil
}

0 comments on commit 67be918

Please sign in to comment.