From d87d1f4e82820a6a8b836e3a17e970e2dc38c8c3 Mon Sep 17 00:00:00 2001 From: Willy Kloucek Date: Wed, 30 Dec 2020 07:21:17 +0100 Subject: [PATCH] fix always true condition --- .drone.star | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.star b/.drone.star index 6ea279acbf..236a1730ea 100644 --- a/.drone.star +++ b/.drone.star @@ -373,7 +373,7 @@ def uploadCoverage(ctx): 'from_secret': 'sonar_token', }, } - if True or ctx.build.event == 'pull_request': + if ctx.build.event == 'pull': sonar_env.update({ 'SONAR_PULL_REQUEST_BASE': '%s' % (ctx.build.target), 'SONAR_PULL_REQUEST_BRANCH': '%s' % (ctx.build.source),