Skip to content

Commit 2ec60a1

Browse files
authored
[7.x] Remove duplicate but in error message (#50699)
1 parent b0faa0a commit 2ec60a1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/kbn-config-schema/src/types/__snapshots__/uri_type.test.ts.snap

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/kbn-config-schema/src/types/uri_type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class URIType extends Type<string> {
3636
case 'string.base':
3737
return `expected value of type [string] but got [${typeDetect(value)}].`;
3838
case 'string.uriCustomScheme':
39-
return `expected URI with scheme [${scheme}] but but got [${value}].`;
39+
return `expected URI with scheme [${scheme}] but got [${value}].`;
4040
case 'string.uri':
4141
return `value is [${value}] but it must be a valid URI (see RFC 3986).`;
4242
}

0 commit comments

Comments
 (0)