Skip to content

Commit

Permalink
fix: node linting
Browse files Browse the repository at this point in the history
I really shouldn't need to be fixing this
  • Loading branch information
coroiu committed Oct 10, 2024
1 parent e5cdcdb commit 6441cbc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions crates/bitwarden-napi/src-ts/bitwarden_client/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as rust from "../../binding";
import { LogLevel } from "../../binding";
import * as rust from '../../binding';
import { LogLevel } from '../../binding';
import {
Convert,
ClientSettings,
Expand All @@ -11,19 +11,19 @@ import {
SecretsDeleteResponse,
SecretsResponse,
SecretsSyncResponse,
} from "./schemas";
} from './schemas';

function handleResponse<T>(response: {
success: boolean;
errorMessage?: string | null;
data?: T | null;
}): T {
if (!response.success) {
throw new Error(response.errorMessage || "");
throw new Error(response.errorMessage || '');
}

if (response.data === null) {
throw new Error(response.errorMessage || "SDK response data is null");
throw new Error(response.errorMessage || 'SDK response data is null');
}

return response.data as T;
Expand Down
6 changes: 3 additions & 3 deletions crates/bitwarden-napi/src-ts/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from "./bitwarden_client/index";
export * from "./bitwarden_client/schemas";
export { LogLevel } from "../binding";
export * from './bitwarden_client/index';
export * from './bitwarden_client/schemas';
export { LogLevel } from '../binding';

0 comments on commit 6441cbc

Please sign in to comment.