Skip to content

Commit

Permalink
Improved code.
Browse files Browse the repository at this point in the history
  • Loading branch information
khmarbaise committed Aug 8, 2023
1 parent b70d982 commit 8d8c9bb
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ public boolean supportsParameter(ParameterContext parameterContext, ExtensionCon

@Override
public Object resolveParameter(ParameterContext parameterContext, ExtensionContext extensionContext) throws ParameterResolutionException {
Class<?> type = parameterContext.getParameter().getType();
if (type == FileSystem.class) {
if (parameterContext.getParameter().getType() == FileSystem.class) {
return getContext(extensionContext).get(FILE_SYSTEM + extensionContext.getUniqueId(), FileSystem.class);
}
return null;
Expand Down

0 comments on commit 8d8c9bb

Please sign in to comment.