Skip to content

Commit

Permalink
chore: console.error 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
jhj2713 committed Aug 23, 2024
1 parent cb70437 commit 282f5ce
Show file tree
Hide file tree
Showing 15 changed files with 1 addition and 36 deletions.
1 change: 0 additions & 1 deletion admin/src/apis/authAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export const AuthAPI = {

return response.json();
} catch (error) {
console.error("Error:", error);
throw error;
}
},
Expand Down
1 change: 0 additions & 1 deletion admin/src/apis/imageAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export const ImageAPI = {

return response.json();
} catch (error) {
console.error("Error:", error);
throw error;
}
},
Expand Down
8 changes: 0 additions & 8 deletions admin/src/apis/lotteryAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export const LotteryAPI = {
});
return response.json();
} catch (error) {
console.error("Error:", error);
throw error;
}
},
Expand All @@ -40,7 +39,6 @@ export const LotteryAPI = {
});
return response.json();
} catch (error) {
console.error("Error:", error);
throw error;
}
},
Expand All @@ -52,7 +50,6 @@ export const LotteryAPI = {
});
return response.json();
} catch (error) {
console.error("Error:", error);
throw error;
}
},
Expand All @@ -64,7 +61,6 @@ export const LotteryAPI = {
});
return response.json();
} catch (error) {
console.error("Error:", error);
throw error;
}
},
Expand All @@ -82,7 +78,6 @@ export const LotteryAPI = {
);
return response.json();
} catch (error) {
console.error("Error:", error);
throw error;
}
},
Expand All @@ -100,7 +95,6 @@ export const LotteryAPI = {
);
return response.json();
} catch (error) {
console.error("Error:", error);
throw error;
}
},
Expand All @@ -118,7 +112,6 @@ export const LotteryAPI = {
);
return response.json();
} catch (error) {
console.error("Error:", error);
throw error;
}
},
Expand All @@ -133,7 +126,6 @@ export const LotteryAPI = {
});
return {};
} catch (error) {
console.error("Error:", error);
throw error;
}
},
Expand Down
5 changes: 0 additions & 5 deletions admin/src/apis/rushAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export const RushAPI = {
});
return response.json();
} catch (error) {
console.error("Error:", error);
throw error;
}
},
Expand All @@ -40,7 +39,6 @@ export const RushAPI = {
});
return response.json();
} catch (error) {
console.error("Error:", error);
throw error;
}
},
Expand All @@ -58,7 +56,6 @@ export const RushAPI = {
);
return response.json();
} catch (error) {
console.error("Error:", error);
throw error;
}
},
Expand All @@ -76,7 +73,6 @@ export const RushAPI = {
);
return response.json();
} catch (error) {
console.error("Error:", error);
throw error;
}
},
Expand All @@ -91,7 +87,6 @@ export const RushAPI = {
});
return response.json();
} catch (error) {
console.error("Error:", error);
throw error;
}
},
Expand Down
1 change: 0 additions & 1 deletion admin/src/hooks/useFetchMultiple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export default function useFetchMultiple<T, P>(
setIsSuccess(true);
} catch (error) {
setIsError(true);
console.error(error);
if (showError) {
showBoundary(error);
}
Expand Down
1 change: 0 additions & 1 deletion admin/src/utils/getMsTime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ export function getMsTime(dateString: string) {
const date = new Date(dateString);

if (isNaN(date.getTime())) {
console.error(`Invalid date string: ${dateString}`);
return -1;
}

Expand Down
1 change: 0 additions & 1 deletion client/src/apis/authAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export const AuthAPI = {
});
return response.json();
} catch (error) {
console.error("Error:", error);
throw error;
}
},
Expand Down
1 change: 0 additions & 1 deletion client/src/apis/linkAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export const LinkAPI = {
});
return response.json();
} catch (error) {
console.error("Error:", error);
throw error;
}
},
Expand Down
4 changes: 0 additions & 4 deletions client/src/apis/lotteryAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export const LotteryAPI = {
});
return response.json();
} catch (error) {
console.error("Error:", error);
throw error;
}
},
Expand All @@ -33,7 +32,6 @@ export const LotteryAPI = {
});
return response.json();
} catch (error) {
console.error("Error:", error);
throw error;
}
},
Expand All @@ -45,7 +43,6 @@ export const LotteryAPI = {
});
return response.json();
} catch (error) {
console.error("Error:", error);
throw error;
}
},
Expand All @@ -58,7 +55,6 @@ export const LotteryAPI = {
});
return response.json();
} catch (error) {
console.error("Error:", error);
throw error;
}
},
Expand Down
8 changes: 0 additions & 8 deletions client/src/apis/rushAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export const RushAPI = {
});
return response.json();
} catch (error) {
console.error("Error:", error);
throw error;
}
},
Expand All @@ -37,7 +36,6 @@ export const RushAPI = {
});
return response.json();
} catch (error) {
console.error("Error:", error);
throw error;
}
},
Expand All @@ -49,7 +47,6 @@ export const RushAPI = {
});
return response.json();
} catch (error) {
console.error("Error:", error);
throw error;
}
},
Expand All @@ -69,7 +66,6 @@ export const RushAPI = {

throw new Error(`Unexpected response status: ${response.status}`);
} catch (error) {
console.error("Error:", error);
throw error;
}
},
Expand All @@ -84,7 +80,6 @@ export const RushAPI = {
});
return response.json();
} catch (error) {
console.error("Error:", error);
throw error;
}
},
Expand All @@ -96,7 +91,6 @@ export const RushAPI = {
});
return response.json();
} catch (error) {
console.error("Error:", error);
throw error;
}
},
Expand All @@ -108,7 +102,6 @@ export const RushAPI = {
});
return response.json();
} catch (error) {
console.error("Error:", error);
throw error;
}
},
Expand All @@ -124,7 +117,6 @@ export const RushAPI = {

throw new Error(`Unexpected response status: ${response.status}`);
} catch (error) {
console.error("Error:", error);
throw error;
}
},
Expand Down
1 change: 0 additions & 1 deletion client/src/apis/totalAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export const TotalAPI = {
});
return response.json();
} catch (error) {
console.error("Error:", error);
throw error;
}
},
Expand Down
1 change: 0 additions & 1 deletion client/src/hooks/useFetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export default function useFetch<T, P = void>(fetch: (params: P) => Promise<T>,
setIsSuccess(!!data);
} catch (error) {
setIsError(true);
console.error(error);
if (showError) {
showBoundary(error);
}
Expand Down
1 change: 0 additions & 1 deletion client/src/utils/getMsTime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ export function getMsTime(dateString: string) {
const date = new Date(dateString);

if (isNaN(date.getTime())) {
console.error(`Invalid date string: ${dateString}`);
return -1;
}

Expand Down
2 changes: 1 addition & 1 deletion client/src/utils/saveDomImage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ export async function saveDomImage({ casperCustomDom, casperName }: SaveDomImage
link.href = pngDataUrl;
link.click();
} catch (error) {
console.error("Failed to save image:", error);
throw error;
}
}
1 change: 0 additions & 1 deletion client/src/utils/writeClipboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export async function writeClipboard(
await navigator.clipboard.writeText(text);
successCallback && successCallback();
} catch (err) {
console.error("Failed to copy: ", err);
errorCallback && errorCallback();
}
}

0 comments on commit 282f5ce

Please sign in to comment.