Skip to content

Commit

Permalink
fix: check style
Browse files Browse the repository at this point in the history
  • Loading branch information
guqing committed Nov 11, 2022
1 parent 94de0f9 commit 4dfa559
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,10 @@ public TypedValue read(@NonNull EvaluationContext context, Object target, @NonNu
Object value = null;
if (Mono.class.isAssignableFrom(clazz)) {
value = ((Mono<?>) target).block();
}
if (Flux.class.isAssignableFrom(clazz)) {
assert target instanceof Flux<?>;
} else if (Flux.class.isAssignableFrom(clazz)) {
value = ((Flux<?>) target).toIterable();
}

if (value == null) {
return TypedValue.NULL;
}
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/run/halo/app/theme/finders/PostFinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ public interface PostFinder {
Mono<ListResult<ListedPostVo>> listByCategory(@Nullable Integer page, @Nullable Integer size,
String categoryName);

Mono<ListResult<ListedPostVo>> listByTag(@Nullable Integer page, @Nullable Integer size, String tag);
Mono<ListResult<ListedPostVo>> listByTag(@Nullable Integer page, @Nullable Integer size,
String tag);

Mono<ListResult<PostArchiveVo>> archives(Integer page, Integer size);

Expand Down

0 comments on commit 4dfa559

Please sign in to comment.