Will charging iPad thru Mac while plugged in damage battery?

If my I’m charging my MacBook and have my iPad plugged into my MacBook, also charging, will it cause accelerated wear on the MacBooks battery? Or will the power from the Mac charging cable go directly to the iPad? I don’t want the iPad’s charging to go through the Mac’s battery and cause accelerated wear.