-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFR: Refactor #84
RFR: Refactor #84
Conversation
@creationix oh i see, sorry for the confusion |
local match, hash = db.match(author, pname, version) | ||
|
||
if not match then | ||
error("No such " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
string.format here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There isn't much static content, it would look like:
error(string.format("No such %s: %s%s",
version and "version" or "package",
name,
version and '@' .. version or ''))
I'll change it if you prefer string.format
here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah... yeah, that isn't much change. nm
minor nit, we should probably add the luvit/luvi license to the source files as well. |
+1... i do think the license headers would be good to add as well |
f77df9b
to
121759f
Compare
Refactor the internals a lot to be more modular and saner logic.