Skip to content

Commit

Permalink
refactor: replace template strings with regular string literals
Browse files Browse the repository at this point in the history
Template literals are useful when you need:  1. [Interpolated strings](https://en.wikipedia.org/wiki/String_interpolation).
  • Loading branch information
deepsource-autofix[bot] authored Jul 23, 2024
1 parent 0406dcb commit 644e1eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/geo-ip.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function fetchIPInfo() {
export function fetchGeolocationInfo(ipAddress) {
return __awaiter(this, void 0, void 0, function* () {
try {
const proxy = ` https://low-power-proxxy-v2ndqtpkjq-de.a.run.app/proxy?url=`;
const proxy = " https://low-power-proxxy-v2ndqtpkjq-de.a.run.app/proxy?url=";
const targetUrl = `https://freegeoip.app/json/${ipAddress}`; // Target URL
const response = yield fetch(proxy + targetUrl);
const data = yield response.json();
Expand Down
2 changes: 1 addition & 1 deletion geo-ip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export async function fetchIPInfo() {
export async function fetchGeolocationInfo(ipAddress:string) {
try {

const proxy = ` https://low-power-proxxy-v2ndqtpkjq-de.a.run.app/proxy?url=`
const proxy = " https://low-power-proxxy-v2ndqtpkjq-de.a.run.app/proxy?url="



Expand Down

0 comments on commit 644e1eb

Please sign in to comment.