From 9cbcb1f0d746e248b8794f751434794f72165bbb Mon Sep 17 00:00:00 2001 From: Maxime Date: Thu, 6 Feb 2020 17:14:59 +0100 Subject: [PATCH] fix style --- .../aws/sns/DefaultSimpleNotificationService.groovy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subprojects/micronaut-aws-sdk-sns/src/main/groovy/com/agorapulse/micronaut/aws/sns/DefaultSimpleNotificationService.groovy b/subprojects/micronaut-aws-sdk-sns/src/main/groovy/com/agorapulse/micronaut/aws/sns/DefaultSimpleNotificationService.groovy index d815696..77e0c6d 100644 --- a/subprojects/micronaut-aws-sdk-sns/src/main/groovy/com/agorapulse/micronaut/aws/sns/DefaultSimpleNotificationService.groovy +++ b/subprojects/micronaut-aws-sdk-sns/src/main/groovy/com/agorapulse/micronaut/aws/sns/DefaultSimpleNotificationService.groovy @@ -65,7 +65,7 @@ class DefaultSimpleNotificationService implements SimpleNotificationService { @Override String getIosSandboxApplicationArn() { - return checkNotEmpty(configuration.iosSandbox.arn, 'Ios application arn must be defined in config') + return checkNotEmpty(configuration.iosSandbox.arn, 'Ios sandbox application arn must be defined in config') } @Override @@ -220,7 +220,7 @@ class DefaultSimpleNotificationService implements SimpleNotificationService { if (result.attributes.get('Token') == deviceToken && result.attributes.get('Enabled').equalsIgnoreCase(Boolean.TRUE.toString())) { setEndpointAttributes(endpointArn, [ CustomUserData: customUserData - ] as Map) + ]) return endpointArn } } catch (NotFoundException ignored) { @@ -236,7 +236,7 @@ class DefaultSimpleNotificationService implements SimpleNotificationService { setEndpointAttributes(endpointArn, [ CustomUserData: customUserData, Enabled: Boolean.TRUE.toString() - ] as Map) + ]) return endpointArn } catch (InvalidParameterException ignored) { deleteEndpoint(endpointArn)