Fasting will diminish the effects of the anesthesia so it will be less effective.
In my view you are best to have broken your fast for the 2 weeks leading up to the surgery and recommence (if necessary) after the surgery is completed; this will accelerate the healing process.