[minor] Use the shorthand for assigning a getter.