Change loader function return type

Changing from `string` to `?`: the return value from the function is not used.