fix golint issues in core/contextx (#477)

This commit is contained in:
Kevin Wan
2021-02-18 18:00:20 +08:00
committed by GitHub
parent 425be6b4a1
commit f6894448bd
3 changed files with 4 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ func (valueOnlyContext) Err() error {
return nil
}
// ValueOnlyFrom takes all values from the given ctx, without deadline and error control.
func ValueOnlyFrom(ctx context.Context) context.Context {
return valueOnlyContext{
Context: ctx,