You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by "fgksgf (via GitHub)" <gi...@apache.org> on 2023/09/18 14:04:53 UTC
[GitHub] [skywalking-infra-e2e] fgksgf commented on a diff in pull request #118: make e2e output summary with numeric information & add 'subtractor' function to func.go
fgksgf commented on code in PR #118:
URL: https://github.com/apache/skywalking-infra-e2e/pull/118#discussion_r1328783581
##########
internal/components/verifier/funcs.go:
##########
@@ -93,3 +96,10 @@ func regexpMatch(s, pattern string) string {
}
return s
}
+
+func subtractor(a int, nums ...int) int {
+ for _, num := range nums {
+ a -= num
+ }
+ return a
+}
Review Comment:
```suggestion
func subtractor(total int, nums ...int) int {
for _, num := range nums {
total -= num
}
return total
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org