From cc93a2ec6efe99c820fe046e6d4cfb39d00558a4 Mon Sep 17 00:00:00 2001 From: Basil Crow Date: Thu, 28 Nov 2024 13:37:34 -0800 Subject: [PATCH] Fix Spotless (#1013) --- src/main/java/hudson/plugins/ec2/EC2Cloud.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/hudson/plugins/ec2/EC2Cloud.java b/src/main/java/hudson/plugins/ec2/EC2Cloud.java index 650f6f63a..53452ebe2 100644 --- a/src/main/java/hudson/plugins/ec2/EC2Cloud.java +++ b/src/main/java/hudson/plugins/ec2/EC2Cloud.java @@ -876,7 +876,8 @@ public Collection provision(final Label label, int excessWorkload) } } catch (AmazonServiceException e) { LOGGER.log(Level.WARNING, t + ". Exception during provisioning", e); - if (e.getErrorCode().equals("RequestExpired") || e.getErrorCode().equals("ExpiredToken")) { + if (e.getErrorCode().equals("RequestExpired") + || e.getErrorCode().equals("ExpiredToken")) { // A RequestExpired or ExpiredToken error can indicate that credentials have expired so reconnect LOGGER.log(Level.INFO, "Reconnecting to EC2 due to RequestExpired or ExpiredToken error"); try {