Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hoeck committed Dec 6, 2023
1 parent 44a572e commit 5ea2c55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/dictionary.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { objectRuntype } from './object'
import {
createFail,
setupInternalRuntype,
InternalRuntypeOf,
isFail,
propagateFail,
getInternalRuntype,
InternalRuntypeOf,
setupInternalRuntype,
} from './runtype'
import type { Runtype } from './runtype'
import { debugValue } from './runtypeError'
import type { Runtype, InternalRuntype, Fail } from './runtype'

const internalObjectRuntype: InternalRuntypeOf<typeof objectRuntype> = objectRuntype

Expand Down
2 changes: 1 addition & 1 deletion src/record.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export function internalRecord(
// checked at all
// this is vital to preserve the object shape of an impure record
// with optional fields
if (t.meta?.optional && !o.hasOwnProperty(k)) {
if (t.meta?.optional && !Object.prototype.hasOwnProperty.call(o, k)) {
break
}

Expand Down

0 comments on commit 5ea2c55

Please sign in to comment.