Skip to content

Commit ee85d43

Browse files
committed
fix: reorder checks
1 parent f5acc0c commit ee85d43

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/dids/src/did.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ export class DID {
265265
options: CreateJWSOptions,
266266
payload: T
267267
): Promise<GeneralJWS> {
268-
if (this._id == null) throw new Error('DID is not authenticated')
269268
if (this._client == null) throw new Error('No provider available')
269+
if (this._id == null) throw new Error('DID is not authenticated')
270270
const { jws } = await this._client.request('did_createJWS', {
271271
did: this._id,
272272
...options,

0 commit comments

Comments
 (0)