before:
#<Set: {"src/ssl_sock.c:1454:104: warning: unused parameter ‘al’ [-Wunused-parameter]\n int ssl_sock_sctl_add_cbk(SSL *ssl, unsigned ext_type, const unsigned char **out, size_t *outlen, int *al, void *add_arg)\n ^~\n"}>
after:
src/ssl_sock.c:1454:104: warning: unused parameter ‘al’ [-Wunused-parameter]
int ssl_sock_sctl_add_cbk(SSL *ssl, unsigned ext_type, const unsigned char **out, size_t *outlen, int *al, void *add_arg)
^~
Signed-off-by: Lin Jiaxin <ljx.joe(a)qq.com>
---
lib/error_messages.rb | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/error_messages.rb b/lib/error_messages.rb
index 3a74d29..5bbc329 100644
--- a/lib/error_messages.rb
+++ b/lib/error_messages.rb
@@ -43,9 +43,9 @@ class ErrorMessages
def obtain_error_messages_by_errorid(errorid)
error_messages_by_errorid = []
error_messages = obtain_error_messages
- error_messages.each do | k, v |
- if ("build-pkg." + build_pkg_error_id(k)) == errorid
- error_messages_by_errorid << v
+ error_messages.each do |k, v|
+ if ('build-pkg.' + build_pkg_error_id(k)) == errorid
+ error_messages_by_errorid += v.to_a
end
end
error_messages_by_errorid
--
2.23.0