remove unused variable declarations
This commit is contained in:
parent
4e490a007c
commit
04a79f3920
1 changed files with 1 additions and 5 deletions
|
@ -374,11 +374,7 @@ const FileListing: FC<{ query?: ParsedUrlQuery }> = ({ query }) => {
|
||||||
|
|
||||||
if ('file' in responses[0] && responses.length === 1) {
|
if ('file' in responses[0] && responses.length === 1) {
|
||||||
const file = responses[0].file as OdFileObject
|
const file = responses[0].file as OdFileObject
|
||||||
const downloadUrl = file['@microsoft.graph.downloadUrl']
|
const previewType = getPreviewType(getExtension(file.name), { video: Boolean(file.video) })
|
||||||
const fileName = file.name
|
|
||||||
const fileExtension = fileName.slice(((fileName.lastIndexOf('.') - 1) >>> 0) + 2).toLowerCase()
|
|
||||||
|
|
||||||
const previewType = getPreviewType(fileExtension, { video: Boolean(file.video) })
|
|
||||||
|
|
||||||
if (previewType) {
|
if (previewType) {
|
||||||
switch (previewType) {
|
switch (previewType) {
|
||||||
|
|
Loading…
Reference in a new issue