mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
chore: fix lint:js-in-markdown script (#38260)
This commit is contained in:
@@ -3,9 +3,7 @@ const path = require('path')
|
||||
|
||||
async function handleFileOpen () {
|
||||
const { canceled, filePaths } = await dialog.showOpenDialog()
|
||||
if (canceled) {
|
||||
|
||||
} else {
|
||||
if (!canceled) {
|
||||
return filePaths[0]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user