A logical expression in the \Magento\Sales\Block\Adminhtml\Items\AbstractItems::canEditQty() method can be simplified

It can be simplified to:

return !$this->getOrder()->getPayment()->canCapture() || $this->getOrder()->getPayment()->canCapturePartial();

See also: