Skip to content
This repository has been archived by the owner on Mar 6, 2020. It is now read-only.

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
roxteddy committed Feb 6, 2020
1 parent 5be8d52 commit 9cbcb1f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand All @@ -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)
Expand Down

0 comments on commit 9cbcb1f

Please sign in to comment.