Small cleanup items, fix a typo and rename a function to match the return type
Small cleanup items, fix a typo and rename a function to match the return type

PiperOrigin-RevId: 450065112
Change-Id: I7f72807ec1d4b2d08703f9d7096f15be67c4d854

GoogleCloudPlatform/buildpacks,GoogleCloudPlatform/buildpacks,GoogleCloudPlatform/buildpacks,GoogleCloudPlatform/buildpacks