From d804c48187628c665845ad1284758fc54b180bd4 Mon Sep 17 00:00:00 2001 From: Oskar Schirmer Date: Tue, 27 Oct 2009 11:29:59 +0100 Subject: [PATCH] purge conditional loops Signed-off-by: Oskar Schirmer Acked-by: Gordon Hecker --- local/ls-project.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/local/ls-project.lua b/local/ls-project.lua index 3c67d76..c417a13 100755 --- a/local/ls-project.lua +++ b/local/ls-project.lua @@ -124,8 +124,8 @@ if opts.dot or opts["dot-sources"] then else print(string.format(" \"%s\"", r)) end - for _, src in ipairs(res.sources) do - if opts["dot-sources"] then + if opts["dot-sources"] then + for _, src in ipairs(res.sources) do if opts.swap then print(string.format(" \"%s-src\" %s \"%s\"", src, arrow, r)) else @@ -134,8 +134,8 @@ if opts.dot or opts["dot-sources"] then end end end - for _, s in ipairs(info.sources_sorted) do - if opts["dot-sources"] then + if opts["dot-sources"] then + for _, s in ipairs(info.sources_sorted) do print(string.format(" \"%s-src\" [label=\"%s\", shape=box]", s, s)) end end -- 2.39.5