`index` is unused, you don't need this `resolver` function at all.