Skip to content

Commit 40b6676

Browse files
committed
UNIX 哲学に沿って、成功時は何も表示せず失敗時 (notify_failure) のみタスク実行結果を通知する
cf. https://ja.wikipedia.org/wiki/UNIX哲学#:~:text=沈黙のルール
1 parent 361c969 commit 40b6676

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/upcoming_events/aggregation.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ def execute
6161
class Notifier
6262
class << self
6363
def notify_success(provider)
64-
notify("近日開催イベント情報#{provider_info(provider)}を収集しました")
64+
# NOTE: UNIX 哲学に沿って、成功時は何も表示せず失敗時 (notify_failure) のみ通知する
65+
# https://ja.wikipedia.org/wiki/UNIX哲学#:~:text=沈黙のルール
66+
# notify("近日開催イベント情報#{provider_info(provider)}を収集しました")
6567
end
6668

6769
def notify_failure(provider, exception)

0 commit comments

Comments
 (0)