remove assert
This commit is contained in:
parent
8dc4b835c9
commit
bdf09e24c3
@ -15,7 +15,6 @@ import {
|
|||||||
setToString,
|
setToString,
|
||||||
} from "./misc";
|
} from "./misc";
|
||||||
import { decryptArrayBuffer, encryptArrayBuffer } from "./encrypt";
|
import { decryptArrayBuffer, encryptArrayBuffer } from "./encrypt";
|
||||||
import { strict as assert } from "assert";
|
|
||||||
|
|
||||||
export interface DropboxConfig {
|
export interface DropboxConfig {
|
||||||
accessToken: string;
|
accessToken: string;
|
||||||
@ -146,7 +145,6 @@ const fixLastModifiedTimeInplace = (allFilesFolders: RemoteItem[]) => {
|
|||||||
if (item.lastModified !== undefined) {
|
if (item.lastModified !== undefined) {
|
||||||
continue; // don't need to deal with it
|
continue; // don't need to deal with it
|
||||||
}
|
}
|
||||||
assert(!(item.key in potentialMTime));
|
|
||||||
const parent = `${path.posix.dirname(item.key)}/`;
|
const parent = `${path.posix.dirname(item.key)}/`;
|
||||||
if (parent in potentialMTime) {
|
if (parent in potentialMTime) {
|
||||||
item.lastModified = potentialMTime[parent];
|
item.lastModified = potentialMTime[parent];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user