Skip to content

Commit

Permalink
{}.compact! is not available until ruby 2.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
teclator committed Nov 8, 2018
1 parent fca0abf commit 2911814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clients/ntp-client_proposal.rb
Expand Up @@ -355,7 +355,7 @@ def Write(params)
log.info "ntp client proposal Write with #{params.inspect}"

# clean params
params.compact!
params.delete_if { |_, v| v.nil? }

ntp_server = params.fetch("server", "")
ntp_servers = params.fetch("servers", [])
Expand Down

0 comments on commit 2911814

Please sign in to comment.