From a1e8191ef8f40c4028d162e2f2fc1acfe8921b1e Mon Sep 17 00:00:00 2001 From: Matt Cottingham Date: Fri, 31 May 2019 15:45:40 +0100 Subject: [PATCH] Return early --- pkg/compact/compact.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/compact/compact.go b/pkg/compact/compact.go index 598589c95cd..b2177cb8655 100644 --- a/pkg/compact/compact.go +++ b/pkg/compact/compact.go @@ -619,6 +619,7 @@ func IsHaltError(err error) bool { return true } } + return false } _, ok := errors.Cause(err).(HaltError)