mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-06 18:24:57 +08:00
remove unused variable parameters from functions
This commit is contained in:
committed by
Mike Farah
parent
3ce266bfa0
commit
f168172bf4
@@ -7,7 +7,7 @@ type assignPreferences struct {
|
||||
}
|
||||
|
||||
func assignUpdateFunc(prefs assignPreferences) crossFunctionCalculation {
|
||||
return func(d *dataTreeNavigator, context Context, lhs *CandidateNode, rhs *CandidateNode) (*CandidateNode, error) {
|
||||
return func(_ *dataTreeNavigator, _ Context, lhs *CandidateNode, rhs *CandidateNode) (*CandidateNode, error) {
|
||||
if !prefs.OnlyWriteNull || lhs.Tag == "!!null" {
|
||||
lhs.UpdateFrom(rhs, prefs)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user