git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
0a96f6d
)
applications/luci-statistics: add missing return in _expand()
author
Jo-Philipp Wich
<redacted>
Fri, 7 Sep 2012 16:17:43 +0000
(16:17 +0000)
committer
Jo-Philipp Wich
<redacted>
Fri, 7 Sep 2012 16:17:43 +0000
(16:17 +0000)
applications/luci-statistics/root/usr/bin/stat-genconfig
patch
|
blob
|
history
diff --git
a/applications/luci-statistics/root/usr/bin/stat-genconfig
b/applications/luci-statistics/root/usr/bin/stat-genconfig
index 171c1ae733fe9c0e6e41aac7f2cc9897bf284d5a..4cf39460efc5241aa57b41857acade3e5c59faac 100755
(executable)
--- a/
applications/luci-statistics/root/usr/bin/stat-genconfig
+++ b/
applications/luci-statistics/root/usr/bin/stat-genconfig
@@
-200,22
+200,19
@@
function _list_expand( c, l, nopad )
end
function _expand( s, n, nopad )
- if type(s) == "string" then
- local str = ""
+ local str = ""
+ if type(s) == "string" then
for i, v in ipairs( luci.util.split( s, "%s+", nil, true ) ) do
str = str .. _string( v, n, nopad )
end
-
- return str
-
elseif type(s) == "table" then
- local str = ""
-
for i, v in ipairs(s) do
str = str .. _string( v, n, nopad )
end
end
+
+ return str
end
function _bool( s, n, nopad )
git clone https://git.99rst.org/PROJECT