Code cleanup

itkevin лет %!s(int64=12): %!d(string=назад)
Родитель
Сommit
430a6a8432
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/models/agents/website_agent.rb

+ 1 - 1
app/models/agents/website_agent.rb

@@ -100,7 +100,7 @@ module Agents
100 100
           options[:extract].keys.each do |name|
101 101
             result[name] = output[name][index]
102 102
             if name.to_s == 'url'
103
-              result[name] = URI.join( options[:url], result[name]).to_s if (result[name] =~ URI::DEFAULT_PARSER.regexp[:ABS_URI]).nil?
103
+              result[name] = URI.join(options[:url], result[name]).to_s if (result[name] =~ URI::DEFAULT_PARSER.regexp[:ABS_URI]).nil?
104 104
             end
105 105
           end
106 106