[Groonga-commit] ranguba/packnga at c83ab8e [master] Fix warning: shadowing outer local variable - entry

Back to archive index

284km null+****@clear*****
Fri May 4 18:08:14 JST 2018


284km	2018-05-04 18:08:14 +0900 (Fri, 04 May 2018)

  New Revision: c83ab8e488254f271013c4efc0c94809fc9c29a7
  https://github.com/ranguba/packnga/commit/c83ab8e488254f271013c4efc0c94809fc9c29a7

  Merged 8e816f5: Merge pull request #11 from 284km/fix_warnings

  Message:
    Fix warning: shadowing outer local variable - entry

  Modified files:
    packnga.gemspec

  Modified: packnga.gemspec (+2 -2)
===================================================================
--- packnga.gemspec    2018-05-04 18:04:40 +0900 (c82623c)
+++ packnga.gemspec    2018-05-04 18:08:14 +0900 (2e433b5)
@@ -36,8 +36,8 @@ entry.call("Authors").each_line do |line|
   end
 end
 
-clean_white_space = lambda do |entry|
-  entry.gsub(/(\A\n+|\n+\z)/, '') + "\n"
+clean_white_space = lambda do |entry_description|
+  entry_description.gsub(/(\A\n+|\n+\z)/, '') + "\n"
 end
 description = clean_white_space.call(entry.call("Description"))
 summary, description = description.split(/\n\n+/, 2)
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180504/29a012cc/attachment.htm 



More information about the Groonga-commit mailing list
Back to archive index