Skip to content

Commit

Permalink
fix: remove the undefined return type for Flux endpoint methods (#510)
Browse files Browse the repository at this point in the history
  • Loading branch information
cromoteca authored Aug 17, 2022
1 parent 6fd93b7 commit e2f4dc3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,8 @@ public String getTypeDeclaration(Schema schema) {
Schema inner = arraySchema.getItems();
if (schema.getExtensions() != null
&& schema.getExtensions().containsKey("x-flux")) {
return String.format("Subscription<%s>%s",
this.getTypeDeclaration(inner), optionalSuffix);
return String.format("Subscription<%s>",
this.getTypeDeclaration(inner));
} else {
return String.format("Array<%s>%s",
this.getTypeDeclaration(inner), optionalSuffix);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Subscription<User> {
* Return a list of users
*/
function _getAllUsers():
Subscription<User | undefined> | undefined {
Subscription<User | undefined> {
return client.subscribe (
'FluxTestEndpoint', 'getAllUsers',{}
);
Expand Down

0 comments on commit e2f4dc3

Please sign in to comment.