Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
george pogosyan committed Feb 5, 2025
1 parent f4e3623 commit 8b5d5ad
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions plugin/action/join_template/go_panic.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,8 @@ func containsGoroutineID(s string) bool {
s = s[i+len(goroutineIDPrefix):]

i = strings.Index(s, goroutineIDSuffix)
if i == -1 {
return false
}

// no digits
if i == 0 {
// not found or found at start
if i < 1 {
return false
}

Expand Down

0 comments on commit 8b5d5ad

Please sign in to comment.