mirror of https://github.com/stashapp/stash.git
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:
parent
b2b05fb332
commit
489db34db2
|
@ -20,7 +20,7 @@ func getArgumentMap(ctx context.Context) map[string]interface{} {
|
|||
func getUpdateInputMap(ctx context.Context) map[string]interface{} {
|
||||
args := getArgumentMap(ctx)
|
||||
|
||||
input, _ := args[updateInputField]
|
||||
input := args[updateInputField]
|
||||
var ret map[string]interface{}
|
||||
if input != nil {
|
||||
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{} {
|
||||
args := getArgumentMap(ctx)
|
||||
|
||||
input, _ := args[updateInputField]
|
||||
input := args[updateInputField]
|
||||
var ret []map[string]interface{}
|
||||
if input != nil {
|
||||
// convert []interface{} into []map[string]interface{}
|
||||
|
|
Loading…
Reference in New Issue