From 1c7c999861f24c6fe4bf2ef3f5af707a09250224 Mon Sep 17 00:00:00 2001 From: ncaq Date: Tue, 26 Jul 2022 15:40:25 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20break=E3=81=A7=E3=81=AF=E3=81=AA?= =?UTF-8?q?=E3=81=8Fnext=E3=82=92=E4=BD=BF=E3=81=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ~~~ LocalJumpError: break from proc-closure ~~~ を回避する。 Rubyの基礎的な知識が足りていなかった。 --- twitter_activity.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twitter_activity.rb b/twitter_activity.rb index b295fa0..a7bd714 100644 --- a/twitter_activity.rb +++ b/twitter_activity.rb @@ -43,7 +43,7 @@ end on_follow do |by, to| - break if by.nil? || to.nil? + next if by.nil? || to.nil? by_user_to_user = { followee: by[:idname],