Skip to content

Commit b708621

Browse files
track8dmke
authored andcommitted
Change hash to keyword args using the double splat
Change hash to keyword args using the double splat. influxdb-0.8.0/lib/influxdb/query/core.rb:29: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call influxdb-0.8.0/lib/influxdb/query/core.rb:88: warning: The called method `query_params' is defined here
1 parent 8df479a commit b708621

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/influxdb/query/core.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def query( # rubocop:disable Metrics/MethodLength
2626
)
2727
query = builder.build(query, params)
2828

29-
url = full_url("/query".freeze, query_params(query, opts))
29+
url = full_url("/query".freeze, query_params(query, **opts))
3030
series = fetch_series(get(url, parse: true, json_streaming: !chunk_size.nil?))
3131

3232
if block_given?

0 commit comments

Comments
 (0)