Better switch value

011f785a79cab8d2256486005c0735d8b1a39285

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -3Ignore whitespace
public/scripts/utils.js+1 -3
@@ -45,9 +45,7 @@ export function convertValueType(value, type) {
45 return value;45 return value;
46 }46 }
4747
48 type = type.trim().toLowerCase();48 switch (type.trim().toLowerCase()) {
49
50 switch (type) {
51 case 'string':49 case 'string':
52 case 'str':50 case 'str':
53 return String(value);51 return String(value);