chore: fix remote no work error

This commit is contained in:
期贤 2022-03-21 20:02:11 +08:00
parent 8bb11e6d12
commit 232e236215

View File

@ -44,7 +44,7 @@ async function checkCommit({ files }) {
async function checkRemote() {
const { remote } = await git.fetch('origin', 'master');
if (remote.indexOf('ant-design/ant-design') === -1) {
if (remote?.indexOf('ant-design/ant-design') === -1) {
console.log(
chalk.yellow('😓 Your remote origin is not ant-design/ant-design, did you fork it?'),
);