@@ -77,10 +77,7 @@ func main() {
7777
7878 vulnMessage := string (out )
7979 fmt .Println (vulnMessage )
80- noVuln := false
81- if ! strings .Contains (vulnMessage , "Vulnerability #" ) {
82- noVuln = true
83- }
80+ noVuln := ! strings .Contains (vulnMessage , "Vulnerability #" )
8481
8582 if currentBranch == "" {
8683 if strings .Contains (vulnMessage , "Vulnerability #" ) {
@@ -140,7 +137,7 @@ func main() {
140137func createIssue (baseURL , token , projectID string , title , commentBody string ) {
141138 slog .Info ("Active issue with title '" + title + "' not found in project " + projectID )
142139 // Create the issue here
143- issueData := map [string ]interface {} {
140+ issueData := map [string ]any {
144141 "title" : title ,
145142 "description" : commentBody ,
146143 "labels" : "bot,critical" ,
@@ -188,7 +185,7 @@ func closeTheIssue(baseURL, token, projectID string, issueIID int, commentBody s
188185 addCommentToIssue (baseURL , token , projectID , issueIID , commentBody )
189186
190187 client := & http.Client {}
191- issueData := map [string ]interface {} {
188+ issueData := map [string ]any {
192189 "state_event" : "close" ,
193190 }
194191 issueDataBytes , err := json .Marshal (issueData )
@@ -230,7 +227,7 @@ func closeTheIssue(baseURL, token, projectID string, issueIID int, commentBody s
230227
231228func addCommentToIssue (baseURL , token , projectID string , issueIID int , commentBody string ) {
232229 client := & http.Client {}
233- noteData := map [string ]interface {} {
230+ noteData := map [string ]any {
234231 "body" : commentBody ,
235232 }
236233 noteDataBytes , err := json .Marshal (noteData )
0 commit comments