Skip to content

Commit 897eea7

Browse files
lint
1 parent fb1e211 commit 897eea7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/resource-mapper.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,15 @@ class ResourceMapper {
5555

5656
// Returns the URL corresponding to the relative path on the pod
5757
resolveUrl (hostname, pathname = '') {
58-
return !this._includeHost ? `${this._rootUrl}${pathname}`
58+
return !this._includeHost
59+
? `${this._rootUrl}${pathname}`
5960
: `${this._protocol}//${hostname}${this._port}${this._rootUrl}${pathname}`
6061
}
6162

6263
// Returns the file path corresponding to the relative file path on the pod
6364
resolveFilePath (hostname, filePath = '') {
64-
return !this._includeHost ? `${this._rootPath}${filePath}`
65+
return !this._includeHost
66+
? `${this._rootPath}${filePath}`
6567
: `${this._rootPath}/${hostname}${filePath}`
6668
}
6769

0 commit comments

Comments
 (0)