files-backend.c: delete dead code in files_ref_iterator_begin()
commit4f43731268a85a095e6a0779fc94242f4694e0f4
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sun, 26 Mar 2017 02:42:16 +0000 (26 09:42 +0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Mar 2017 17:23:39 +0000 (27 10:23 -0700)
tree432dddb32219e34093dde2368fc052493fa9e4c7
parent11f8457fb9b787f350e176fd28ee8c01fd2b82d5
files-backend.c: delete dead code in files_ref_iterator_begin()

It's not in the diff context, but files_downcast() is called before this
check. If "refs" is NULL, we would have segfaulted before reaching the
check here. And we should never see NULL refs in backend code (frontend
should have caught it).

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs/files-backend.c