Skip to content

Commit 74d77ae

Browse files
committed
optimize code
1 parent 9198c41 commit 74d77ae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/EIDETypeDefine.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@ export abstract class Configuration<ConfigType = any, EventType = any> {
247247
private _json_equal(str1: string, str2: string): boolean {
248248

249249
try {
250-
const s1 = JSON.stringify(jsonc.parse(str1));
251-
const s2 = JSON.stringify(jsonc.parse(str2));
250+
const s1 = jsonc.uglify(str1);
251+
const s2 = jsonc.uglify(str2);
252252
return s1 == s2;
253253
} catch (error) {
254254
// nothing todo

0 commit comments

Comments
 (0)