Remove console.log

Seems like lint is being bypassed recently?
This commit is contained in:
infinite-persistence 2021-07-23 16:30:45 +08:00 committed by jessopb
parent 6e402240b0
commit ffad52d5b7
2 changed files with 0 additions and 6 deletions

View file

@ -497,7 +497,6 @@ export default React.memo<Props>(function VideoJs(props: Props) {
} }
function detectFileType() { function detectFileType() {
console.log(`Detecting file type via pre-fetch...`);
return new Promise(async (res, rej) => { return new Promise(async (res, rej) => {
try { try {
const response = await fetch(source, { method: 'HEAD', cache: 'no-store' }); const response = await fetch(source, { method: 'HEAD', cache: 'no-store' });
@ -514,8 +513,6 @@ export default React.memo<Props>(function VideoJs(props: Props) {
finalSource = response.url; finalSource = response.url;
} }
console.log(`File type is: ${finalType}`);
// Modify video source in options // Modify video source in options
videoJsOptions.sources = [ videoJsOptions.sources = [
{ {
@ -526,7 +523,6 @@ export default React.memo<Props>(function VideoJs(props: Props) {
return res(videoJsOptions); return res(videoJsOptions);
} catch (error) { } catch (error) {
console.error(`Failed to pre-fetch video!`);
return rej(error); return rej(error);
} }
}); });

View file

@ -436,7 +436,6 @@ export function doCommentCreate(
...(environment ? { environment } : {}), // add environment for stripe if it exists ...(environment ? { environment } : {}), // add environment for stripe if it exists
}) })
.then((result: CommentCreateResponse) => { .then((result: CommentCreateResponse) => {
console.log(result);
dispatch({ dispatch({
type: ACTIONS.COMMENT_CREATE_COMPLETED, type: ACTIONS.COMMENT_CREATE_COMPLETED,
data: { data: {
@ -449,7 +448,6 @@ export function doCommentCreate(
return result; return result;
}) })
.catch((error) => { .catch((error) => {
console.log(error);
dispatch({ dispatch({
type: ACTIONS.COMMENT_CREATE_FAILED, type: ACTIONS.COMMENT_CREATE_FAILED,
data: error, data: error,