lib/jekyll-chatgpt-translate/ping.rb in jekyll-chatgpt-translate-0.0.26 vs lib/jekyll-chatgpt-translate/ping.rb in jekyll-chatgpt-translate-0.0.27

- old
+ new

@@ -54,13 +54,13 @@ uri = Iri.new(home).path(@path).to_s begin before = Net::HTTP.get_response(URI(uri)) if before.is_a?(Net::HTTPSuccess) html = before.body + @site.static_files << DownloadedFile.new(@site, @path, html) if html.include?(marker) Jekyll.logger.info("No need to translate, the page exists at \ #{uri.inspect} (#{html.split.count} words)") - @site.static_files << DownloadedFile.new(@site, @path, html) return true end Jekyll.logger.info("Re-translation required for #{uri.inspect}") else Jekyll.logger.info("The page is absent, will translate #{uri.inspect} (#{before.code})")