Skip to content

Commit acbda14

Browse files
committed
chore(Crawler): use variable rather than redoing logic
1 parent f39a0d2 commit acbda14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crawler/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function getFolders(source) {
5555
const id = file.substr(file.lastIndexOf(sep) + 1);
5656
const format = getExtensionFromFilename(id);
5757
return {
58-
id: file.substr(file.lastIndexOf(sep) + 1),
58+
id: id,
5959
path: file,
6060
details: getDetails(format, data),
6161
preview: getPreview(data)

0 commit comments

Comments
 (0)