refactor(rest) getWin32RooMsg -> getWin32RootMsg

This commit is contained in:
coderaiser 2014-08-13 06:37:35 -04:00
parent 3921cc0137
commit 96c90587bd

View file

@ -292,9 +292,9 @@
if (!files.from || !files.to) {
sendError(params, p.data);
} else if (isRootWin32(files.to)) {
sendError(params, getWin32RooMsg('to'));
sendError(params, getWin32RootMsg('to'));
} else if (isRootWin32(files.from)) {
sendError(params, getWin32RooMsg('from'));
sendError(params, getWin32RootMsg('from'));
} else {
files.from = mellow.convertPath(files.from);
files.to = mellow.convertPath(files.to);
@ -318,9 +318,9 @@
if (!files.from || !files.names || !files.to) {
sendError(params, p.data);
} else if (isRootWin32(files.to)) {
sendError(params, getWin32RooMsg('to'));
sendError(params, getWin32RootMsg('to'));
} else if (isRootWin32(files.from)) {
sendError(params, getWin32RooMsg('from'));
sendError(params, getWin32RootMsg('from'));
} else {
files.from = mellow.convertPath(files.from);
files.to = mellow.convertPath(files.to);
@ -454,7 +454,7 @@
return isWin32 && isRoot;
}
function getWin32RooMsg(direction) {
function getWin32RootMsg(direction) {
var messageRaw = 'Could not copy {{ direction }} root on windows!',
message = Util.render(messageRaw, {
direction: direction