Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jcavanagh committed Jul 12, 2023
1 parent dc3015f commit a5fa465
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,14 @@ public ArtifactUriToReferenceConverter(ArtifactStore artifactStore) {

@Override
public boolean canConvert(TypeDescriptor sourceType, @NotNull TypeDescriptor targetType) {
return isArtifactUriType(sourceType, targetType) || defaultTypeConverter.canConvert(sourceType, targetType);
return isArtifactUriType(sourceType, targetType)
|| defaultTypeConverter.canConvert(sourceType, targetType);
}

private boolean isArtifactUriType(TypeDescriptor sourceType, @NotNull TypeDescriptor targetType) {
return sourceType != null &&
sourceType.getObjectType() == String.class &&
targetType.getObjectType() == String.class;
return sourceType != null
&& sourceType.getObjectType() == String.class
&& targetType.getObjectType() == String.class;
}

@Override
Expand Down

0 comments on commit a5fa465

Please sign in to comment.