BG: Ensure auth buffer is cleared even in error case (#6756)

This commit is contained in:
ConjuringCoffee 2024-01-18 15:30:14 +01:00 committed by GitHub
parent c4639a3a12
commit 28b9225046
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -147,14 +147,13 @@ CLASS zcl_abapgit_background IMPLEMENTATION.
lo_repo->refresh(
iv_drop_cache = abap_true
iv_drop_log = abap_false ).
" Clear auth buffer to allow different user/password per repository in background mode
zcl_abapgit_login_manager=>clear( ).
CATCH zcx_abapgit_exception INTO lx_error.
li_log->add_exception( lx_error ).
ENDTRY.
" Clear auth buffer to allow different user/password per repository in background mode
zcl_abapgit_login_manager=>clear( ).
zcl_abapgit_log_viewer=>write_log( li_log ).
ENDLOOP.