-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix errcheck and gocritic lint issue for exporter splunk #10818
fix errcheck and gocritic lint issue for exporter splunk #10818
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If those functions shouldn't ever return errors, why not check the error from those functions anyways? It seems like a generally a better practice to handle errors.
It makes sense, I will change like this. |
ping @dashpole, please help review this again, thx |
ping @bogdandrutu, please review this again, thanks. |
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
Co-authored-by: Bogdan Drutu <lazy@splunk.com>
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
c128c89
to
41efa01
Compare
ping @bogdandrutu @djaglowski, I think this pr is ready to be merged, please help review this pr, thanks. |
Signed-off-by: Ziqi Zhao zhaoziqi9146@gmail.com
Description:
fix gocritic and gocritic issue for splunk exporter
the code is modified as following
because in function
makeBlankBufferState
, the tmpBuf is already initialized with smaller spaces than bufLink to tracking Issue:
#10466 #9749