Skip to content

Commit bfd26c6

Browse files
committed
Chore: remove unnecessary comments
1 parent 69b1737 commit bfd26c6

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

src/utils/webdav.utils.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ export class WebDavUtils {
3939
return normalizedPath;
4040
}
4141

42-
// TODO: We can rename this method to parseUrlToPathMetadata so its more descriptive
4342
static async getRequestedResource(requestUrl: string, decodeUri = true): Promise<WebDavRequestedResource> {
4443
const decodedUrl = this.decodeUrl(requestUrl, decodeUri);
4544
const parsedPath = path.parse(decodedUrl);
@@ -97,7 +96,6 @@ export class WebDavUtils {
9796
}
9897
}
9998

100-
// This method will be used mainly for propfind, since we dont know what the user is requesting for
10199
static async getDriveItemFromResource({
102100
resource,
103101
driveFolderService,
@@ -109,8 +107,6 @@ export class WebDavUtils {
109107
}): Promise<DriveItem | undefined> {
110108
let item: DriveItem | undefined = undefined;
111109

112-
// This is exactly the problem, nautilus sends folder urls without trailing slash
113-
// There is just no other way to check wether its a folder or file at this point other than checking ourselves
114110
const isFolder = resource.url.endsWith('/');
115111

116112
try {

src/webdav/handlers/PROPFIND.handler.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,13 @@ export class PROPFINDRequestHandler implements WebDavMethodHandler {
3737

3838
switch (driveItem.itemType) {
3939
case 'file': {
40-
// Here its only used the url
4140
const fileMetaXML = await this.getFileMetaXML(resource, driveItem);
4241
res.status(207).send(fileMetaXML);
4342
break;
4443
}
4544

4645
case 'folder': {
4746
const depth = req.header('depth') ?? '1';
48-
// Here its only used the url
4947
const folderMetaXML = await this.getFolderContentXML(resource, driveItem, depth);
5048
res.status(207).send(folderMetaXML);
5149
break;

0 commit comments

Comments
 (0)