From 30845593cc68815d5c68fcd4ee485ff675f40111 Mon Sep 17 00:00:00 2001 From: Nanda H Krishna Date: Sat, 18 Mar 2023 16:38:08 -0400 Subject: [PATCH] utils/github/actions: remove `Error` class --- Library/Homebrew/utils/github/actions.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Library/Homebrew/utils/github/actions.rb b/Library/Homebrew/utils/github/actions.rb index 84e447cd0c..ed27283bb3 100644 --- a/Library/Homebrew/utils/github/actions.rb +++ b/Library/Homebrew/utils/github/actions.rb @@ -27,7 +27,7 @@ module GitHub delimiter = "ghadelimiter_#{SecureRandom.uuid}" if name.include?(delimiter) || value.include?(delimiter) - raise Error, "`name` and `value` must not contain the delimiter" + raise "`name` and `value` must not contain the delimiter" end <<~EOS @@ -104,9 +104,5 @@ module GitHub @file.descend.next.to_s != ".." end end - - # Generic GitHub Actions error. - class Error < RuntimeError - end end end