# HG changeset patch # User Waqas Hussain # Date 1323412650 -18000 # Node ID 0434eb77d18cc9f59f93b47f917fb5da3a4688aa # Parent 498eaeff6a05b962bf96a6f410b1adfd9a73b51a migrator/jabberd14: Minor refactoring. diff -r 498eaeff6a05 -r 0434eb77d18c tools/migration/migrator/jabberd14.lua --- a/tools/migration/migrator/jabberd14.lua Thu Dec 08 07:41:28 2011 +0000 +++ b/tools/migration/migrator/jabberd14.lua Fri Dec 09 11:37:30 2011 +0500 @@ -67,15 +67,12 @@ end)(); local function load_xml(path) - if path then - local f, err = io_open(path); - if not f then return f, err; end - local data = f:read("*a"); - f:close(); - if data then - return parse_xml(data); - end - end + local f, err = io_open(path); + if not f then return f, err; end + local data = f:read("*a"); + f:close(); + if not data then return; end + return parse_xml(data); end local function load_spool_file(host, filename, path)