AFF: Fix existence check (#5803)

Co-authored-by: Marc Bernard <59966492+mbtools@users.noreply.github.com>
This commit is contained in:
Christian Günter 2022-10-04 23:48:11 +02:00 committed by GitHub
parent 4a5263d0ba
commit f8564cb679
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -294,7 +294,9 @@ CLASS zcl_abapgit_object_common_aff IMPLEMENTATION.
result = rv_bool.
CATCH cx_root INTO lx_error.
zcx_abapgit_exception=>raise_with_text( lx_error ).
" return false instead of raising exception, because abapGit assumes
" that raising exception = existing object
rv_bool = abap_false.
ENDTRY.
ENDMETHOD.
@ -354,7 +356,6 @@ CLASS zcl_abapgit_object_common_aff IMPLEMENTATION.
lv_json_as_xstring TYPE xstring,
lx_exception TYPE REF TO cx_root,
lv_name TYPE c LENGTH 120,
lv_is_deletion TYPE abap_bool VALUE abap_false,
lv_dummy TYPE string.
FIELD-SYMBOLS: <ls_intf_aff_obj> TYPE any,