remove extra function closure, not needed
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/commit/cc833d17 Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/cc833d17 Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/cc833d17 Branch: refs/heads/master Commit: cc833d17c1e7d38532bc4311f7b5948cc0d44886 Parents: d678c78 Author: Jesse MacFadyen <[email protected]> Authored: Tue Jul 8 18:53:42 2014 -0700 Committer: Jesse MacFadyen <[email protected]> Committed: Tue Jul 8 18:53:42 2014 -0700 ---------------------------------------------------------------------- src/windows8/FileProxy.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/cc833d17/src/windows8/FileProxy.js ---------------------------------------------------------------------- diff --git a/src/windows8/FileProxy.js b/src/windows8/FileProxy.js index 93fdc8e..0412d93 100644 --- a/src/windows8/FileProxy.js +++ b/src/windows8/FileProxy.js @@ -43,13 +43,8 @@ function nativePathToCordova(path) { return cleanPath; }; -function getFolderFromPathAsync(path) { - return Windows.Storage.StorageFolder.getFolderFromPathAsync(path); -}; - -function getFileFromPathAsync(path) { - return Windows.Storage.StorageFile.getFileFromPathAsync(path); -}; +var getFolderFromPathAsync = Windows.Storage.StorageFolder.getFolderFromPathAsync; +var getFileFromPathAsync = Windows.Storage.StorageFile.getFileFromPathAsync; module.exports = {
