Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
feons committed Aug 11, 2017
1 parent 18be9b2 commit 5f81071
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions build/liveview.js
Original file line number Diff line number Diff line change
Expand Up @@ -509,9 +509,9 @@

/**
* convert relative to absolute path
* @param {string} parent
* @param {string} relative
*
* @param {string} parent parent file path
* @param {string} relative relative path in require
* @return {string} absolute path of the required file
* @public
*/
Module.toAbsolute = function (parent, relative) {
Expand Down Expand Up @@ -557,7 +557,7 @@
}
} else if (fullPath.indexOf('/') === 0) {
if (Module.exists(fullPath + '/index')) {
fullPath = fullPath + '/index';
fullPath += '/index';
}
} else {
var hlDir = '/hyperloop/';
Expand Down
8 changes: 4 additions & 4 deletions lib/platform/require.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ Module.include = function (ctx, id) {

/**
* convert relative to absolute path
* @param {string} parent
* @param {string} relative
*
* @param {string} parent parent file path
* @param {string} relative relative path in require
* @return {string} absolute path of the required file
* @public
*/
Module.toAbsolute = function (parent, relative) {
Expand Down Expand Up @@ -229,7 +229,7 @@ Module.require = function (id) {
}
} else if (fullPath.indexOf('/') === 0) {
if (Module.exists(fullPath + '/index')) {
fullPath = fullPath + '/index';
fullPath += '/index';
}
} else {
const hlDir = '/hyperloop/';
Expand Down

0 comments on commit 5f81071

Please sign in to comment.