> +import org.jclouds.glacier.reference.GlacierHeaders;
> +import org.jclouds.http.HttpException;
> +import org.jclouds.http.HttpResponse;
> +
> +import com.google.common.base.Function;
> +
> +/**
> + * Parses the jobId from the HttpResponse.
> + */
> +public class ParseJobIdHeader implements Function<HttpResponse, String> {
> +
> +   @Override
> +   public String apply(HttpResponse from) {
> +      String id = from.getFirstHeaderOrNull(GlacierHeaders.JOB_ID);
> +      if (id == null)
> +         throw new HttpException("Did not receive JobId");

[minor] Write as
```
if (id == null) {
   throw new HttpException("Did not receive JobId");
}
```
? Thanks!

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-aws/pull/25/files#r14219907

Reply via email to