JedWatson/keystone — pull request #335 by fbeaudet (2014-05-09 15:35:44+00:00)
Title: Removed useless verification on single element

I don't know what was causing findById to return more than one entry when this verification was written, but according to mongoose documentation and my tests in Keystone, this condition (Array.isArray(item)) never returns true in any case (when displaying the view, saving an item, or trying to edit an item that doesn't exist). Of course, I assume that ids are unique, if that's not the case (is that even possible ?), we should handle this error more explicitly.