Refactoring - Inline Temp
Motivation: You have a temp that is assigned to once with a simple expression, and the temp is getting in the way of other refactorings.
float dvdPrice = MovieDVD.Price(); return dvdPrice;Refactor as:
return MovieDVD.Price();
Comments
Post a Comment