Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit e6bffcf

Browse files
committed
refactor: throw if no 'platforms'
1 parent aae5baa commit e6bffcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/before-watchPatterns.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = function (hookArgs) {
1111
const { env } = liveSyncData;
1212
return (args, originalMethod) => {
1313
return originalMethod(...args).then(originalPatterns => {
14-
if (!platforms.length) {
14+
if (!platforms || !platforms.length) {
1515
throw new Error("Target platform should be specified!");
1616
}
1717

0 commit comments

Comments
 (0)