Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
D8H committed Jan 17, 2025
1 parent 431acff commit 59dfd30
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ const isValidLiteralKeyboardKey = (expression: string): boolean => {
const matches = expression.match(stringRegex);
return matches && matches[1] !== undefined
? keyNamesSet.has(matches[1])
// the expression is not a literal value
: false;
: // the expression is not a literal value
false;
};

// This is not the negation of the function above as both return false for
Expand All @@ -148,8 +148,8 @@ const isInvalidLiteralKeyboardKey = (expression: string): boolean => {
// Return true by default as it could be an expression.
return matches && matches[1] !== undefined
? !keyNamesSet.has(matches[1])
// the expression is not a literal value
: false;
: // the expression is not a literal value
false;
};

const getStringContent = (expression: string): string => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ const isValidLiteralMouseButton = (expression: string): boolean => {
const matches = expression.match(stringRegex);
return matches && matches[1] !== undefined
? mouseButtonsSet.has(matches[1])
// the expression is not a literal value
: false;
: // the expression is not a literal value
false;
};

// This is not the negation of the function above as both return false for
Expand All @@ -52,8 +52,8 @@ const isInvalidLiteralMouseButton = (expression: string): boolean => {
// Return true by default as it could be an expression.
return matches && matches[1] !== undefined
? !mouseButtonsSet.has(matches[1])
// the expression is not a literal value
: false;
: // the expression is not a literal value
false;
};

export default React.forwardRef<ParameterFieldProps, ParameterFieldInterface>(
Expand Down

0 comments on commit 59dfd30

Please sign in to comment.