Skip to content

Commit 2fff883

Browse files
committed
Cleanup http_check.pp
1 parent d62d6a7 commit 2fff883

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

manifests/integrations/http_check.pp

+3-3
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
@@ -254,7 +254,6 @@
254254
Tuple([$key, $_value]).next
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)