projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f855611
)
migrator/jabberd14: Minor refactoring.
author
Waqas Hussain
<waqas20@gmail.com>
Fri, 9 Dec 2011 06:37:30 +0000
(11:37 +0500)
committer
Waqas Hussain
<waqas20@gmail.com>
Fri, 9 Dec 2011 06:37:30 +0000
(11:37 +0500)
tools/migration/migrator/jabberd14.lua
patch
|
blob
|
history
diff --git
a/tools/migration/migrator/jabberd14.lua
b/tools/migration/migrator/jabberd14.lua
index 47004a52df5a7654d63a71fd8af3d76b63d0f52f..54c45d94116e1096df00f055513fb5521f915bdd 100644
(file)
--- a/
tools/migration/migrator/jabberd14.lua
+++ b/
tools/migration/migrator/jabberd14.lua
@@
-67,15
+67,12
@@
local parse_xml = (function()
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)