We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0014b06 commit 3306946Copy full SHA for 3306946
1 file changed
internal/api/api_test.go
@@ -248,8 +248,8 @@ func TestRestoreWallet(t *testing.T) {
248
}
249
250
func parseMetric(metricsData []byte, metricName string) float64 {
251
- lines := strings.Split(string(metricsData), "\n")
252
- for _, line := range lines {
+ lines := strings.SplitSeq(string(metricsData), "\n")
+ for line := range lines {
253
// Skip empty lines or comment lines that start with "#"
254
if len(line) == 0 || strings.HasPrefix(line, "#") {
255
continue
0 commit comments