Skip to content

Commit

Permalink
Merge pull request #91 from mediamonks/fix-empty-path-name
Browse files Browse the repository at this point in the history
Fixes sync version of path resolver ("" -> folder name of config) ==> ("" -> "")
  • Loading branch information
mm-paulie authored Dec 14, 2023
2 parents b6fb128 + 351fd83 commit 17903bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/util/getRichmediaRCSync.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ module.exports = function getRichmediaRCSync(filepath, onDependecy = () => {}) {
if (typeof value === 'string'
&& !isExternalURL(value)
&& !path.isAbsolute(value)
&& fs.existsSync(path.resolve(dirname, value)))
&& fs.existsSync(path.resolve(dirname, value))
&& value !== '')
{
obj[name] = path.resolve(dirname, value);
}
Expand Down

0 comments on commit 17903bf

Please sign in to comment.