diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-28 13:36:47 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-28 13:36:47 +0100 |
commit | 2d2c81765b0a68446a94a7fcba34758a3aa886c0 (patch) | |
tree | 0a0610b95195120bd334ad96f2f308a3bb30295a /app/workers/thread_resolve_worker.rb | |
parent | 26287b6e7dd68e03d6f2d6a7051bb9873e3f6c9a (diff) |
Adding embedded PuSH server
Diffstat (limited to 'app/workers/thread_resolve_worker.rb')
-rw-r--r-- | app/workers/thread_resolve_worker.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/workers/thread_resolve_worker.rb b/app/workers/thread_resolve_worker.rb index 700161989..84eae73be 100644 --- a/app/workers/thread_resolve_worker.rb +++ b/app/workers/thread_resolve_worker.rb @@ -7,9 +7,9 @@ class ThreadResolveWorker child_status = Status.find(child_status_id) parent_status = FetchRemoteStatusService.new.call(parent_url) - unless parent_status.nil? - child_status.thread = parent_status - child_status.save! - end + return if parent_status.nil? + + child_status.thread = parent_status + child_status.save! end end |