Skip to content

Commit f9a2042

Browse files
committed
Fix PR comments
1 parent 0e1ec57 commit f9a2042

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

manifests/integrations/http_check.pp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
'contact' => $contact,
236236
'ca_certs' => $ca_certs,
237237
}]
238-
} elsif !$instances{
238+
} elsif !$instances {
239239
$_instances = []
240240
} else {
241241
$_instances = $instances
@@ -251,10 +251,9 @@
251251
'data', 'headers': {
252252
$_value = datadog_agent::clean_empty($value)
253253
if !$_value.is_a(Array) {
254-
Tuple([$key, $_value]).next
254+
Tuple([$key, $_value])
255255
}
256256

257-
$value_array = $_value.filter |$item| { $item =~ /:/ }
258257
$value_hash = Hash($_value.map |$item| {
259258
$_item = $item.split(':')
260259
$i_key = $_item[0].rstrip
@@ -271,7 +270,8 @@
271270
}
272271

273272
default: {
274-
Tuple([$key, $value]) }
273+
Tuple([$key, $value])
274+
}
275275
}
276276
})
277277
}

0 commit comments

Comments
 (0)