Kyle Evans wrote:
> +function core.isSingleUserBoot()
> +     local single_user = loader.getenv("boot_single");
> +     return single_user ~= nil and single_user:lower() == "yes";
> +end

Just curious, why do you end all lines with semi-colons? It's not very
common in Lua code.

This version looks more idiomatic:

function core.isSingleUserBoot()
        local single_user = loader.getenv("boot_single")
        return single_user and single_user:lower() == "yes"
end

-- 
Alex
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to