From 0f7fb3658a3fb1b4e3deb10039e9981034610534 Mon Sep 17 00:00:00 2001 From: Lars Hvam Date: Sun, 26 May 2019 03:38:54 -0700 Subject: [PATCH] Align code, compare operators #2670 (#2702) * Update abaplint.json * UDMO change compare operator --- abaplint.json | 2 +- src/objects/zcl_abapgit_object_udmo.clas.abap | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/abaplint.json b/abaplint.json index 3d4efbb2f..67960ed31 100644 --- a/abaplint.json +++ b/abaplint.json @@ -226,7 +226,7 @@ "exclude": [] }, "preferred_compare_operator": { - "enabled": false, + "enabled": true, "exclude": [], "badOperators": [ "EQ", diff --git a/src/objects/zcl_abapgit_object_udmo.clas.abap b/src/objects/zcl_abapgit_object_udmo.clas.abap index c3c81f9d8..5fac62dc4 100644 --- a/src/objects/zcl_abapgit_object_udmo.clas.abap +++ b/src/objects/zcl_abapgit_object_udmo.clas.abap @@ -504,7 +504,7 @@ CLASS ZCL_ABAPGIT_OBJECT_UDMO IMPLEMENTATION. ENDLOOP. " You are reminded that long texts do not have to be in existence - IF lines( lt_udmo_long_texts ) GT 0. + IF lines( lt_udmo_long_texts ) > 0. io_xml->add( iv_name = 'UDMO_LONG_TEXTS' ig_data = lt_udmo_long_texts ). ENDIF. @@ -558,7 +558,7 @@ CLASS ZCL_ABAPGIT_OBJECT_UDMO IMPLEMENTATION. ORDER BY sprache ASCENDING. "#EC CI_NOFIRST " You are reminded that descriptions in other languages do not have to be in existence. - IF lines( lt_udmo_texts ) GT 0. + IF lines( lt_udmo_texts ) > 0. io_xml->add( iv_name = 'UDMO_TEXTS' ig_data = lt_udmo_texts ). ENDIF.