1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-11 18:24:43 +02:00

Doc: Fix a minor issue in comment (#10011)

This commit is contained in:
Najam Ul Saqib 2024-02-27 15:17:55 +05:00 committed by GitHub
parent 2ac7997c07
commit b4cc6803e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2310,7 +2310,7 @@ class Setting extends BaseModel {
public static value(key: string) {
// Need to copy arrays and objects since in setValue(), the old value and new one is compared
// with strict equality and the value is updated only if changed. However if the caller acquire
// and object and change a key, the objects will be detected as equal. By returning a copy
// an object and change a key, the objects will be detected as equal. By returning a copy
// we avoid this problem.
function copyIfNeeded(value: any) {
if (value === null || value === undefined) return value;