8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d48d0e5 commit 8b36bdfCopy full SHA for 8b36bdf
JavaScript/0-complex/application.js
@@ -13,9 +13,8 @@ require('./lib/unit3')(api, application);
13
application.reloadUnit = (name) => {
14
const moduleKey = require.resolve('./lib/' + name);
15
delete require.cache[moduleKey];
16
-
17
- const module = require('./lib/' + name)
18
- typeof module === 'function' && module(api, application);
+ const module = require('./lib/' + name);
+ if (typeof module === 'function') module(api, application);
19
};
20
21
application.startWatching = () => {
0 commit comments