refactor: tweaked formatting
@@ -8,8 +8,11 @@ import com.synopsys.integration.detectable.detectables.docker.model.DockerInspec
public class ImageIdentifierGenerator {
public String generate(ImageIdentifierType imageIdentifierType, String suppliedImagePiece, @Nullable DockerInspectorResults dockerResults) {
- if (imageIdentifierType.equals(ImageIdentifierType.IMAGE_ID) && (dockerResults != null) &&
- StringUtils.isNotBlank(dockerResults.getImageRepo()) && StringUtils.isNotBlank(dockerResults.getImageTag())) {
+ if (imageIdentifierType.equals(ImageIdentifierType.IMAGE_ID)
+ && (dockerResults != null)
+ && StringUtils.isNotBlank(dockerResults.getImageRepo())
+ && StringUtils.isNotBlank(dockerResults.getImageTag())
+ ) {
return dockerResults.getImageRepo() + ":" + dockerResults.getImageTag();
}
return suppliedImagePiece;
