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-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"