-
Notifications
You must be signed in to change notification settings - Fork 19
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 handling of optional uploads #160
Conversation
Lines Of Code
|
Go API Changes# summary Inferred base version: v0.2.48 Suggested version: v0.2.49 |
Unit Test Coveragetotal: (statements) 83.6% Coverage of changed lines
Coverage diff with base branch
|
Codecov Report
@@ Coverage Diff @@
## master #160 +/- ##
==========================================
+ Coverage 77.79% 77.98% +0.18%
==========================================
Files 28 28
Lines 1608 1608
==========================================
+ Hits 1251 1254 +3
+ Misses 235 233 -2
+ Partials 122 121 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@@ -75,6 +75,8 @@ func setFile(r *http.Request, field reflect.StructField, v reflect.Value) error | |||
if field.Tag.Get("required") == "true" { | |||
return fmt.Errorf("%w: %q", ErrMissingRequiredFile, name) | |||
} | |||
|
|||
return nil |
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.
This line is the fix.
Benchmark ResultBenchmark diff with base branch
Benchmark result
|
Examples Benchmark ResultBenchmark diff with base branch
|
Fixes a bug mentioned in #159.