Skip to content

Commit a0c6a5d

Browse files
committed
fix missing error check
1 parent 0fa2e73 commit a0c6a5d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

storage/mysql/queue.go

+3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ func enqueue(ctx context.Context, tx *sql.Tx, ids []string, cmd *mdm.Command) er
1919
`INSERT INTO commands (command_uuid, request_type, command) VALUES (?, ?, ?);`,
2020
cmd.CommandUUID, cmd.Command.RequestType, cmd.Raw,
2121
)
22+
if err != nil {
23+
return err
24+
}
2225
query := `INSERT INTO enrollment_queue (id, command_uuid) VALUES (?, ?)`
2326
query += strings.Repeat(", (?, ?)", len(ids)-1)
2427
args := make([]interface{}, len(ids)*2)

0 commit comments

Comments
 (0)