mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-05 20:36:26 +02:00
fix (#19110)
This commit is contained in:
parent
230286b880
commit
42c716b04b
@ -35,7 +35,7 @@ export const MESSAGE_TYPES = {
|
||||
};
|
||||
|
||||
export function messageTypes([type]) {
|
||||
if (!([type] in MESSAGE_TYPES)) {
|
||||
if (!(type in MESSAGE_TYPES)) {
|
||||
assert('type is not a valid message type.');
|
||||
}
|
||||
return MESSAGE_TYPES[type];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user