Skip to content

Commit 0b68264

Browse files
committed
chore: fix assert
1 parent fc321b3 commit 0b68264

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/path.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as assert from 'node:assert';
1+
import { strict } from 'node:assert';
22
import { Construct } from 'constructs';
33
import type { OpenAPIV3_1 } from 'openapi-types';
44
import type { Api } from './api.js';
@@ -29,7 +29,7 @@ export class Path<TPath extends string = '/'> extends Construct {
2929
options: OperationOptions<TPath>,
3030
): this {
3131
// make sure we are not duplicating tags
32-
options.tags?.forEach((tag) => assert(!this.options.tags?.has(tag)));
32+
options.tags?.forEach((tag) => strict(!this.options.tags?.has(tag)));
3333

3434
// eslint-disable-next-line no-new
3535
new Operation(this, method, {

0 commit comments

Comments
 (0)