Skip to content

Commit 59dce79

Browse files
committed
s/num_dropped/num_shown/
1 parent 3c018d8 commit 59dce79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/slack.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ let generate_push_notification notification channel =
250250
sprintf "`<%s|%s>` %s - %s" url (git_short_sha_hash id) title author.name
251251
in
252252
(* truncation point depends on line length, but 10 lines seems okay for most cases *)
253-
let num_dropped = 10 in
254-
let dropped = num_commits - num_dropped in
253+
let num_shown = 10 in
254+
let dropped = num_commits - num_shown in
255255
if dropped > 0 then
256256
List.rev_map_append (List.drop (List.rev commits) dropped) [ sprintf "+%d more..." dropped ] ~f:pp_commit
257257
else List.map commits ~f:pp_commit

0 commit comments

Comments
 (0)