From 17e649d64578ae0e7b514e726a5b3c0036e19d11 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Mon, 22 Oct 2018 21:24:55 +0100 Subject: [PATCH] DEV: Rename shadowed variable --- plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.rb b/plugin.rb index 8c60c31..10ccbd4 100644 --- a/plugin.rb +++ b/plugin.rb @@ -161,7 +161,7 @@ SQL needed_classes = {} pg_result.fields.each_with_index do |col, idx| - rgx = column_regexes.find { |rgx| rgx.match col } + rgx = column_regexes.find { |r| r.match col } if rgx cls = (rgx.match col)[1].to_sym needed_classes[cls] ||= []