我有一个包含 Codacy 的存储库,用于检查代码的质量。当尝试提交时,我遇到了这两个错误,我不知道如何修复...有帮助吗?
预期属性简写。
在这一行中:this.state.notifications.push({name: name, url: inboxFolder.files[parseInt(index)].url});
在索引 0 处找到带有非文字参数的 fs.readFile
在这一行中:let fol=await this.fc.readFile(url.toString());
最佳答案
第一个错误可以通过以下代码行解决:
let url = inboxFolder.files[parseInt(index)].url;
this.state.notifications.push({name, url});
关于javascript - github 中的 Codacy 功能给了我一些我无法理解的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61146651/