Skip to content

Commit 56b3c97

Browse files
committed
don't throw error when it's renaming.
ref: bertho-zero/react-redux-universal-hot-example#361 and fixed typo
1 parent 5abe28c commit 56b3c97

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/containers/Login/Login.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default class Login extends Component {
5252

5353
successLogin = () => {
5454
this.props.notifSend({
55-
message: "You'r logged !",
55+
message: "You're logged !",
5656
kind: 'success',
5757
dismissAfter: 2000
5858
});

src/utils/getChunks.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ export function waitWatchFile({ path, onChange, timeout = 60000 } = {}) {
3333

3434
try {
3535
const watcher = fs.watch(path, 'utf8', eventType => {
36-
if (eventType !== 'change') {
37-
return onChange(new Error(`waitFile: file was renamed: ${path}`));
38-
}
36+
if (eventType !== 'change') return;
3937
fs.readFile(path, 'utf8', (err2, data) => {
4038
if (err2) return onChange(err2);
4139
loaded = true;

0 commit comments

Comments
 (0)