Prevent duplicate line breaks

This commit is contained in:
Hillel Coren 2021-05-14 16:54:29 +03:00
parent 171ccd1960
commit 3c7a684a9e
21 changed files with 25 additions and 23 deletions

View File

@ -595,7 +595,7 @@ abstract class ClientEntity extends Object
actions.add(EntityAction.clientPortal); actions.add(EntityAction.clientPortal);
if (actions.isNotEmpty) { if (actions.isNotEmpty && actions.last != null) {
actions.add(null); actions.add(null);
} }
@ -624,7 +624,7 @@ abstract class ClientEntity extends Object
} }
} }
if (actions.isNotEmpty) { if (actions.isNotEmpty && actions.last != null) {
actions.add(null); actions.add(null);
} }

View File

@ -262,7 +262,7 @@ abstract class CompanyGatewayEntity extends Object
} }
} }
if (actions.isNotEmpty) { if (actions.isNotEmpty && actions.last != null) {
actions.add(null); actions.add(null);
} }

View File

@ -163,7 +163,7 @@ abstract class DesignEntity extends Object
actions.add(EntityAction.clone); actions.add(EntityAction.clone);
} }
if (actions.isNotEmpty) { if (actions.isNotEmpty && actions.last != null) {
actions.add(null); actions.add(null);
} }

View File

@ -217,7 +217,7 @@ abstract class DocumentEntity extends Object
actions.add(EntityAction.clone); actions.add(EntityAction.clone);
} }
if (actions.isNotEmpty) { if (actions.isNotEmpty && actions.last != null) {
actions.add(null); actions.add(null);
} }

View File

@ -92,7 +92,7 @@ abstract class ExpenseCategoryEntity extends Object
actions.add(EntityAction.edit); actions.add(EntityAction.edit);
} }
if (actions.isNotEmpty) { if (actions.isNotEmpty && actions.last != null) {
actions.add(null); actions.add(null);
} }
} }

View File

@ -311,7 +311,7 @@ abstract class ExpenseEntity extends Object
actions.add(EntityAction.clone); actions.add(EntityAction.clone);
} }
if (actions.isNotEmpty) { if (actions.isNotEmpty && actions.last != null) {
actions.add(null); actions.add(null);
} }

View File

@ -160,7 +160,7 @@ abstract class GatewayTokenEntity extends Object
} }
} }
if (actions.isNotEmpty) { if (actions.isNotEmpty && actions.last != null) {
actions.add(null); actions.add(null);
} }

View File

@ -159,7 +159,7 @@ abstract class GroupEntity extends Object
} }
} }
if (actions.isNotEmpty) { if (actions.isNotEmpty && actions.last != null) {
actions.add(null); actions.add(null);
} }

View File

@ -787,7 +787,7 @@ abstract class InvoiceEntity extends Object
} }
} }
if (actions.isNotEmpty) { if (actions.isNotEmpty && actions.last != null) {
actions.add(null); actions.add(null);
} }
@ -835,7 +835,9 @@ abstract class InvoiceEntity extends Object
actions.add(EntityAction.cloneToOther); actions.add(EntityAction.cloneToOther);
} }
actions.add(null); if (actions.isNotEmpty && actions.last != null) {
actions.add(null);
}
} }
if (userCompany.canEditEntity(this) && !isDeleted) { if (userCompany.canEditEntity(this) && !isDeleted) {

View File

@ -399,7 +399,7 @@ abstract class PaymentEntity extends Object
} }
} }
if (actions.isNotEmpty) { if (actions.isNotEmpty && actions.last != null) {
actions.add(null); actions.add(null);
} }

View File

@ -315,7 +315,7 @@ abstract class ProductEntity extends Object
actions.add(EntityAction.clone); actions.add(EntityAction.clone);
} }
if (actions.isNotEmpty) { if (actions.isNotEmpty && actions.last != null) {
actions.add(null); actions.add(null);
} }

View File

@ -189,7 +189,7 @@ abstract class ProjectEntity extends Object
} }
} }
if (actions.isNotEmpty) { if (actions.isNotEmpty && actions.last != null) {
actions.add(null); actions.add(null);
} }

View File

@ -173,7 +173,7 @@ abstract class SubscriptionEntity extends Object
} }
} }
if (actions.isNotEmpty) { if (actions.isNotEmpty && actions.last != null) {
actions.add(null); actions.add(null);
} }

View File

@ -578,7 +578,7 @@ abstract class TaskEntity extends Object
} }
} }
if (actions.isNotEmpty) { if (actions.isNotEmpty && actions.last != null) {
actions.add(null); actions.add(null);
} }

View File

@ -106,7 +106,7 @@ abstract class TaskStatusEntity extends Object
actions.add(EntityAction.edit); actions.add(EntityAction.edit);
} }
if (actions.isNotEmpty) { if (actions.isNotEmpty && actions.last != null) {
actions.add(null); actions.add(null);
} }

View File

@ -143,7 +143,7 @@ abstract class TaxRateEntity extends Object
} }
} }
if (actions.isNotEmpty) { if (actions.isNotEmpty && actions.last != null) {
actions.add(null); actions.add(null);
} }

View File

@ -160,7 +160,7 @@ abstract class TokenEntity extends Object
} }
} }
if (actions.isNotEmpty) { if (actions.isNotEmpty && actions.last != null) {
actions.add(null); actions.add(null);
} }

View File

@ -295,7 +295,7 @@ abstract class UserEntity extends Object
actions.add(EntityAction.remove); actions.add(EntityAction.remove);
} }
if (actions.isNotEmpty) { if (actions.isNotEmpty && actions.last != null) {
actions.add(null); actions.add(null);
} }

View File

@ -202,7 +202,7 @@ abstract class VendorEntity extends Object
} }
} }
if (actions.isNotEmpty) { if (actions.isNotEmpty && actions.last != null) {
actions.add(null); actions.add(null);
} }

View File

@ -233,7 +233,7 @@ abstract class WebhookEntity extends Object
} }
} }
if (actions.isNotEmpty) { if (actions.isNotEmpty && actions.last != null) {
actions.add(null); actions.add(null);
} }

View File

@ -91,7 +91,7 @@ abstract class StubEntity extends Object with BaseEntity implements Built<StubEn
} }
} }
if (actions.isNotEmpty) { if (actions.isNotEmpty && actions.last != null) {
actions.add(null); actions.add(null);
} }