Skip to content

Commit 415231b

Browse files
committed
chore: use semver function
1 parent 147ac3b commit 415231b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/#apmg#cl_package_json_valid.clas.abap

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -304,12 +304,7 @@ CLASS /apmg/cl_package_json_valid IMPLEMENTATION.
304304
METHOD is_valid_version.
305305

306306
" Check if it is a semantic version
307-
TRY.
308-
/apmg/cl_semver=>create( version ).
309-
result = abap_true.
310-
CATCH /apmg/cx_error.
311-
result = abap_false.
312-
ENDTRY.
307+
result = /apmg/cl_semver_functions=>valid( version ).
313308

314309
ENDMETHOD.
315310

0 commit comments

Comments
 (0)