refactor presist check to persist level (#4644)

The old code called the REPO service class to check if a repo exists, to better encapsulate the packages, the check will now stay inside the persistence package
This commit is contained in:
Lars Hvam 2021-03-17 07:10:31 +01:00 committed by GitHub
parent 055d631d75
commit 630012aea9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -274,8 +274,10 @@ CLASS ZCL_ABAPGIT_PERSISTENCE_USER IMPLEMENTATION.
" Check if repo exists
TRY.
lo_repo = zcl_abapgit_repo_srv=>get_instance( )->get( rv_key ).
CATCH zcx_abapgit_exception.
zcl_abapgit_persistence_db=>get_instance( )->read(
iv_type = zcl_abapgit_persistence_db=>c_type_repo
iv_value = rv_key ).
CATCH zcx_abapgit_not_found.
" remove invalid key
CLEAR rv_key.
zif_abapgit_persist_user~set_repo_show( rv_key ).