Skip to content
Snippets Groups Projects
Commit 72747d91 authored by Iustin Pop's avatar Iustin Pop
Browse files

Remove use of 'head' and add hlint warning for it


Since 'head' is unsafe to use in most cases, this patch removes its
use from most of the code, adds a lint warning for it (and for tail as
well), and adds override annotations in the few cases where it's
actually OK to use it (mainly when using head over the result of
functions which guarantee to return a non-empty list by documentation,
not type).

Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
parent b6ad806f
No related branches found
No related tags found
No related merge requests found
Showing
with 119 additions and 67 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment