Skip to content

fix: use nil instead of empty string as request body#662

Merged
nodece merged 2 commits intostreamnative:masterfrom
nodece:fix_requst_body
Apr 29, 2022
Merged

fix: use nil instead of empty string as request body#662
nodece merged 2 commits intostreamnative:masterfrom
nodece:fix_requst_body

Conversation

@nodece
Copy link
Copy Markdown
Contributor

@nodece nodece commented Mar 21, 2022

Signed-off-by: Zixuan Liu nodeces@gmail.com

Motivation

The empty string does not equal the nil, if we don't need to pass the request body, we need to use the nil.

Modifications

  • Use nil instead of ""

Documentation

  • no-need-doc

Signed-off-by: Zixuan Liu <nodeces@gmail.com>
@nodece nodece requested review from a team and zymap as code owners March 21, 2022 03:12
@github-actions github-actions Bot added the no-need-doc This pr does not need any document label Mar 21, 2022
@nodece nodece merged commit 09f449b into streamnative:master Apr 29, 2022
nodece added a commit that referenced this pull request Apr 29, 2022
Signed-off-by: Zixuan Liu <nodeces@gmail.com>

Co-authored-by: lipenghui <penghui@apache.org>
(cherry picked from commit 09f449b)
nodece added a commit that referenced this pull request Apr 29, 2022
Signed-off-by: Zixuan Liu <nodeces@gmail.com>

Co-authored-by: lipenghui <penghui@apache.org>
(cherry picked from commit 09f449b)
nodece added a commit that referenced this pull request Apr 29, 2022
Signed-off-by: Zixuan Liu <nodeces@gmail.com>

Co-authored-by: lipenghui <penghui@apache.org>
(cherry picked from commit 09f449b)
nodece added a commit that referenced this pull request May 9, 2022
Signed-off-by: Zixuan Liu <nodeces@gmail.com>

Co-authored-by: lipenghui <penghui@apache.org>
(cherry picked from commit 09f449b)
tisonkun pushed a commit to tisonkun/pulsar-client-go that referenced this pull request Aug 15, 2023
…lsarctl#662)

Signed-off-by: Zixuan Liu <nodeces@gmail.com>

Co-authored-by: lipenghui <penghui@apache.org>
tisonkun pushed a commit to apache/pulsar-client-go that referenced this pull request Aug 16, 2023
…lsarctl#662)

Signed-off-by: Zixuan Liu <nodeces@gmail.com>

Co-authored-by: lipenghui <penghui@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-need-doc This pr does not need any document

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants