From 2baedc9bcc6fa4bd4863d84019ce652ef1037e6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Fri, 25 Jan 2019 21:28:22 +0100 Subject: [PATCH] make ansible key generator a tiny bit faster --- contrib/ansible/genkeys.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/ansible/genkeys.go b/contrib/ansible/genkeys.go index 22418a0c..7df2e588 100644 --- a/contrib/ansible/genkeys.go +++ b/contrib/ansible/genkeys.go @@ -117,6 +117,8 @@ func bubbleUpTo(sets []keySet, num int) []keySet { var tmp = sets[i] sets[i] = sets[i + 1] sets[i + 1] = tmp + } else { + break } } return sets