src/platform/forms-system/src/js/utilities/file/readAndCheckFile.js
Function readAndCheckFile
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function readAndCheckFile(file, checks) {
return new Promise((resolve, reject) => {
// Don't load file if there's nothing to check
if (Object.keys(checks).length === 0) {
resolve({});