Remove assignments to _ (#1685)

It's a no-op if we are not using it, so it can be safely removed.
This commit is contained in:
SmallCoccinelle 2021-09-07 05:18:32 +02:00 committed by GitHub
parent b2b05fb332
commit 489db34db2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ func getArgumentMap(ctx context.Context) map[string]interface{} {
func getUpdateInputMap(ctx context.Context) map[string]interface{} { func getUpdateInputMap(ctx context.Context) map[string]interface{} {
args := getArgumentMap(ctx) args := getArgumentMap(ctx)
input, _ := args[updateInputField] input := args[updateInputField]
var ret map[string]interface{} var ret map[string]interface{}
if input != nil { if input != nil {
ret, _ = input.(map[string]interface{}) ret, _ = input.(map[string]interface{})
@ -36,7 +36,7 @@ func getUpdateInputMap(ctx context.Context) map[string]interface{} {
func getUpdateInputMaps(ctx context.Context) []map[string]interface{} { func getUpdateInputMaps(ctx context.Context) []map[string]interface{} {
args := getArgumentMap(ctx) args := getArgumentMap(ctx)
input, _ := args[updateInputField] input := args[updateInputField]
var ret []map[string]interface{} var ret []map[string]interface{}
if input != nil { if input != nil {
// convert []interface{} into []map[string]interface{} // convert []interface{} into []map[string]interface{}