Skip to content

Commit f002e92

Browse files
authored
changing to lower case for Matter (#1340)
1 parent fb649e5 commit f002e92

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src-electron/util/types.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -246,11 +246,11 @@ function convertToCliType(str) {
246246
* @returns true if type is string, false otherwise
247247
*/
248248
function isString(type) {
249-
switch (type.toUpperCase()) {
250-
case 'CHAR_STRING':
251-
case 'OCTET_STRING':
252-
case 'LONG_CHAR_STRING':
253-
case 'LONG_OCTET_STRING':
249+
switch (type.toLowerCase()) {
250+
case 'char_string':
251+
case 'octet_string':
252+
case 'long_char_string':
253+
case 'long_octet_string':
254254
return true
255255
default:
256256
return false
@@ -263,10 +263,10 @@ function isString(type) {
263263
* @returns true if type is float, false otherwise
264264
*/
265265
function isFloat(type) {
266-
switch (type) {
267-
case 'FLOAT_SEMI':
268-
case 'FLOAT_SINGLE':
269-
case 'FLOAT_DOUBLE':
266+
switch (type.toLowerCase()) {
267+
case 'float_semi':
268+
case 'float_single':
269+
case 'float_double':
270270
return true
271271
default:
272272
return false

0 commit comments

Comments
 (0)