authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-02-20 18:53:02 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-02-20 18:53:02 -08:00
log2405f3305f050b63a3a11fb2dcf31b005b67d85e
tree521b579f385fd654df64f7013bd36bff129febb1
parent6b05885c0f4c10e3a6fed3c62fe3c264e0b1e30c

cmd/license- add items that dont have a zig.mod to the unspecified list


1 files changed, 4 insertions(+), 1 deletions(-)

src/cmd/license.zig+4-1
......@@ -33,7 +33,10 @@ pub fn execute(args: [][]u8) !void {
3333 const unspecified_list = &List.init(gpa);
3434
3535 for (master_list.items) |item| {
36 if (item.yaml == null) continue;
36 if (item.yaml == null) {
37 try unspecified_list.append(item);
38 continue;
39 }
3740 const license_code = item.yaml.?.get_string("license");
3841 if (license_code.len == 0) {
3942 try unspecified_list.append(item);