Typically this doesn't really matter - links built to a domain will always benefit that particular domain, regardless of whether it can be accessed at 'www.', 'non-www.', 'http://' or 'https://'. I would bet my bottom dollar that there will be almost zero impact on your positions.
Remember to couple this change with a change in Google Search Console to set your 'Preferred Domain' appearance in Google Search results - this can be done under 'Settings' > 'Site Settings'.
