File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,6 @@ export default class GoogleDriveAdapter extends CachingAdapter {
250250 if ( this . server . password ) {
251251 try {
252252 try {
253- // TODO: Use this when encrypting
254253 const json = JSON . parse ( xmlDocText )
255254 xmlDocText = await Crypto . decryptAES ( this . server . password , json . ciphertext , json . salt )
256255 } catch ( e ) {
@@ -264,7 +263,8 @@ export default class GoogleDriveAdapter extends CachingAdapter {
264263 throw new DecryptionError ( )
265264 }
266265 }
267- } else if ( ! xmlDocText || ! xmlDocText . includes ( '<?xml version="1.0" encoding="UTF-8"?>' ) ) {
266+ }
267+ if ( ! xmlDocText || ! xmlDocText . includes ( '<?xml version="1.0" encoding="UTF-8"?>' ) ) {
268268 throw new FileUnreadableError ( )
269269 }
270270
Original file line number Diff line number Diff line change @@ -227,7 +227,8 @@ export default class WebDavAdapter extends CachingAdapter {
227227 throw new DecryptionError ( )
228228 }
229229 }
230- } else if ( ! xmlDocText || ( ! xmlDocText . includes ( '<?xml version="1.0" encoding="UTF-8"?>' ) && ! xmlDocText . includes ( '<!DOCTYPE NETSCAPE-Bookmark-file-1>' ) ) ) {
230+ }
231+ if ( ! xmlDocText || ( ! xmlDocText . includes ( '<?xml version="1.0" encoding="UTF-8"?>' ) && ! xmlDocText . includes ( '<!DOCTYPE NETSCAPE-Bookmark-file-1>' ) ) ) {
231232 throw new FileUnreadableError ( )
232233 }
233234
You can’t perform that action at this time.
0 commit comments