From f75ed3bad4f297e52f5789a2618a3c6bc1078d03 Mon Sep 17 00:00:00 2001 From: Jesse Peterson Date: Mon, 28 Aug 2023 15:18:13 -0700 Subject: [PATCH] pull out fix for mainline commit --- storage/mysql/queue.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/storage/mysql/queue.go b/storage/mysql/queue.go index 7c1ef83..54dcb36 100644 --- a/storage/mysql/queue.go +++ b/storage/mysql/queue.go @@ -19,9 +19,6 @@ func enqueue(ctx context.Context, tx *sql.Tx, ids []string, cmd *mdm.Command) er `INSERT INTO commands (command_uuid, request_type, command) VALUES (?, ?, ?);`, cmd.CommandUUID, cmd.Command.RequestType, cmd.Raw, ) - if err != nil { - return err - } query := `INSERT INTO enrollment_queue (id, command_uuid) VALUES (?, ?)` query += strings.Repeat(", (?, ?)", len(ids)-1) args := make([]interface{}, len(ids)*2)