Skip to content

Commit

Permalink
Libs(java,js,kt): whitespace fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
svix-onelson committed Oct 23, 2024
1 parent ad24510 commit 7ba90cc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions java/lib/src/main/java/com/svix/SvixOptions.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.svix;

public final class SvixOptions {
private static final String DEFAULT_URL = "https://api.svix.com";
private static final String DEFAULT_URL = "https://api.svix.com";

private boolean debug = false;
private String serverUrl;
private boolean debug = false;
private String serverUrl;

public SvixOptions() {
}
Expand Down
2 changes: 0 additions & 2 deletions javascript/templates/api/api.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ export class {{classname}}ResponseProcessor {
* @throws ApiException if the response code was not in [200, 299]
*/
public async {{nickname}}WithHttpInfo(response: ResponseContext): Promise<HttpInfo<{{{returnType}}} {{^returnType}}void{{/returnType}}>> {
// FIXME(onelson): verify that special handling of empty body is no longer required.
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
{{#responses}}
if (isCodeInRange("{{code}}", response.httpStatusCode)) {
Expand Down Expand Up @@ -266,7 +265,6 @@ export class {{classname}}ResponseProcessor {
return new HttpInfo(response.httpStatusCode, response.headers, response.body, undefined);
{{/returnType}}
}
// FIXME(onelson): verify that special handling of empty body is no longer required.
throw new ApiException<string | {{{fileContentDataType}}} | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}

Expand Down
2 changes: 1 addition & 1 deletion javascript/templates/http/http.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -317,4 +317,4 @@ export class HttpInfo<T> extends ResponseContext {
) {
super(httpStatusCode, headers, body);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -471,4 +471,4 @@ import kotlin.random.Random
return value.toString()
{{/toJson}}
}
}
}

0 comments on commit 7ba90cc

Please sign in to comment.