I think it only applies if the dealing is with a country with which the US is at war.
We aren’t at war with Syria? Declared or not, we’re arming rebels to take down a legally elected government. We aren’t at war with ISIS in Europe and the Mideast? McCain’s been mouthing off in those areas.