From b4f0e0b56ea7213e3801341626d89c4542f54792 Mon Sep 17 00:00:00 2001 From: Markus Heiden Date: Thu, 19 May 2022 09:36:47 +0200 Subject: [PATCH] Minor optimization by not calling a getter twice --- .../com/google/ads/googleads/lib/utils/AbstractErrorUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google-ads-stubs-lib/src/main/java/com/google/ads/googleads/lib/utils/AbstractErrorUtils.java b/google-ads-stubs-lib/src/main/java/com/google/ads/googleads/lib/utils/AbstractErrorUtils.java index 66ed48cf0a..2ce5bf29c9 100644 --- a/google-ads-stubs-lib/src/main/java/com/google/ads/googleads/lib/utils/AbstractErrorUtils.java +++ b/google-ads-stubs-lib/src/main/java/com/google/ads/googleads/lib/utils/AbstractErrorUtils.java @@ -115,7 +115,7 @@ public List getGoogleAdsErrors( && path.getIndex().get() == operationIndex) { GoogleAdsErrorT error = path.getError(); if (!result.contains(error)) { - result.add(path.getError()); + result.add(error); } } }