Merge pull request #15005 from nandahkrishna/actions-error-remove

utils/github/actions: remove `Error` class
This commit is contained in:
Nanda H Krishna 2023-03-18 16:58:49 -04:00 committed by GitHub
commit e89492fc38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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