mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 12:20:51 +08:00
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:
parent
055d631d75
commit
630012aea9
|
@ -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 ).
|
||||
|
|
Loading…
Reference in New Issue
Block a user