Skip to content

Commit

Permalink
changing to lower case for Matter (project-chip#1340)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulr34 authored Jun 14, 2024
1 parent fb649e5 commit f002e92
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src-electron/util/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,11 +246,11 @@ function convertToCliType(str) {
* @returns true if type is string, false otherwise
*/
function isString(type) {
switch (type.toUpperCase()) {
case 'CHAR_STRING':
case 'OCTET_STRING':
case 'LONG_CHAR_STRING':
case 'LONG_OCTET_STRING':
switch (type.toLowerCase()) {
case 'char_string':
case 'octet_string':
case 'long_char_string':
case 'long_octet_string':
return true
default:
return false
Expand All @@ -263,10 +263,10 @@ function isString(type) {
* @returns true if type is float, false otherwise
*/
function isFloat(type) {
switch (type) {
case 'FLOAT_SEMI':
case 'FLOAT_SINGLE':
case 'FLOAT_DOUBLE':
switch (type.toLowerCase()) {
case 'float_semi':
case 'float_single':
case 'float_double':
return true
default:
return false
Expand Down

0 comments on commit f002e92

Please sign in to comment.