mirror of https://github.com/calzoneman/sync.git
Remove debug conditional
This commit is contained in:
parent
f6c201f3ba
commit
b0daa58874
|
@ -66,8 +66,6 @@ function initChannelDumper(Server) {
|
||||||
Logger.syslog.log(`Saving channels with delay ${wait}`);
|
Logger.syslog.log(`Saving channels with delay ${wait}`);
|
||||||
Promise.reduce(Server.channels, (_, chan) => {
|
Promise.reduce(Server.channels, (_, chan) => {
|
||||||
return Promise.delay(wait).then(() => {
|
return Promise.delay(wait).then(() => {
|
||||||
if (chan.name === 'test')
|
|
||||||
throw new TypeError('Whoops fucked up there');
|
|
||||||
if (!chan.dead && chan.users && chan.users.length > 0) {
|
if (!chan.dead && chan.users && chan.users.length > 0) {
|
||||||
return chan.saveState().tap(() => {
|
return chan.saveState().tap(() => {
|
||||||
Logger.syslog.log(`Saved /r/${chan.name}`);
|
Logger.syslog.log(`Saved /r/${chan.name}`);
|
||||||
|
|
Loading…
Reference in New Issue