-
Notifications
You must be signed in to change notification settings - Fork 208
Allow several types to be used by Event watcher #1467
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
Conversation
|
/lgtm |
|
Code coverage for golang is
|
|
Sorry, just replaced |
|
Code coverage for golang is
|
| case bool: | ||
| out = strconv.FormatBool(v) | ||
| default: | ||
| return "", fmt.Errorf("%T", v) |
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.
nits
- return "", fmt.Errorf("%T", v)
+ err = fmt.Errorf("unable to convert: %T", v)| { | ||
| name: "uint64", | ||
| value: uint64(1), | ||
| want: "1", | ||
| wantErr: false, | ||
| }, | ||
| { | ||
| name: "uint64", | ||
| value: uint64(1), | ||
| want: "1", | ||
| wantErr: false, | ||
| }, |
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.
duplicated 🤔
|
The following ISSUES will be created once got merged. If you want me to skip creating the issue, you can use Details1. Validate value in YAML before actual readingThis was created by todo plugin since "TODO:" was found in 2863def when #1467 was merged. cc: @nakabonne. |
|
@khanhtc1202 Thank you! PTAL again! |
|
thank you 😊 |
What this PR does / why we need it:
Depending on the value, the type of value can be a variety of one.
Which issue(s) this PR fixes:
Fixes #
Does this PR introduce a user-facing change?: