You shouldn't need to change that bit -- the old code is ready for chef 11, while the new if chef 10 only.