Skip to content

Commit 87e6418

Browse files
committed
fix: remove ImageMagick comments and resolve linting issues
1 parent 31c9973 commit 87e6418

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

functions/v2/imagemagick/index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,12 @@ functions.cloudEvent('blurOffensiveImages', async cloudEvent => {
3636
const name = cloudEvent.data.name;
3737

3838
if (bucket === BLURRED_BUCKET_NAME) {
39-
console.log('Event triggered by the blurred bucket; skip to avoid recursion')
39+
console.log(
40+
'Event triggered by the blurred bucket; skip to avoid recursion'
41+
);
4042
return;
4143
}
42-
44+
4345
const file = storage.bucket(bucket).file(name);
4446
const filePath = `gs://${bucket}/${name}`;
4547

@@ -67,7 +69,7 @@ functions.cloudEvent('blurOffensiveImages', async cloudEvent => {
6769
// [END functions_imagemagick_analyze]
6870

6971
// [START functions_imagemagick_blur]
70-
// Blurs the given file using ImageMagick, and uploads it to another bucket.
72+
// Blurs the given file using sharp, and uploads it to another bucket.
7173
const blurImage = async (file, blurredBucketName) => {
7274
const tempLocalPath = `/tmp/${path.parse(file.name).base}`;
7375
const tempLocalBlurredPath = `/tmp/blurred-${path.parse(file.name).base}`;

0 commit comments

Comments
 (0)