Skip to content

Commit e14a531

Browse files
committed
Removes unnecessary variable [minor]
1 parent d5983af commit e14a531

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

htmlpreview.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@
5252
const getServiceBase = function () {
5353
if (window.location) {
5454
const loc = window.location;
55-
const serviceBase = loc.origin + loc.pathname;
56-
return serviceBase;
55+
return loc.origin + loc.pathname;
5756
}
5857
// Fallback value
5958
// eslint-disable-next-line @stylistic/js/max-len

0 commit comments

Comments
 (0)