Remove extra `endif`
Merge pull request #2 from andy-morris/patch-1

Remove extra `endif`