You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by ly...@apache.org on 2024/08/01 05:56:11 UTC

(incubator-devlake) branch dev-1 updated: fix(webhook): fix lint errors

This is an automated email from the ASF dual-hosted git repository.

lynwee pushed a commit to branch dev-1
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/dev-1 by this push:
     new d16c97e88 fix(webhook): fix lint errors
d16c97e88 is described below

commit d16c97e8879eb7f908aed935e041be5340aa58df
Author: d4x1 <15...@qq.com>
AuthorDate: Thu Aug 1 13:56:03 2024 +0800

    fix(webhook): fix lint errors
---
 backend/plugins/webhook/api/issues.go | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/backend/plugins/webhook/api/issues.go b/backend/plugins/webhook/api/issues.go
index 6a95ab99d..88f7e859d 100644
--- a/backend/plugins/webhook/api/issues.go
+++ b/backend/plugins/webhook/api/issues.go
@@ -144,15 +144,7 @@ func PostIssue(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, error
 			domainIssue.LeadTimeMinutes = &temp
 		}
 	}
-	//nolint:SA9003
-	if *domainIssue.TimeRemainingMinutes == 0 {
-		// FIXME we have no idea about how to calculate it.
-	}
-	//nolint:SA9003
-	if *domainIssue.TimeSpentMinutes == 0 {
-		// FIXME we have no idea about how to calculate it.
-	}
-
+	// FIXME we have no idea about how to calculate domainIssue.TimeRemainingMinutes and domainIssue.TimeSpentMinutes.
 	if request.CreatorId != "" {
 		domainIssue.CreatorId = fmt.Sprintf("%s:%d:%s", "webhook", connection.ID, request.CreatorId)
 	}