Skip to content

Commit

Permalink
No results returns -1
Browse files Browse the repository at this point in the history
  • Loading branch information
allthesignals committed Feb 6, 2024
1 parent 2630211 commit 4a97ec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/utils/blur-detector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class BlurryDetector {
}

async analyse(imagePath: string): Promise<{ isBlurry: boolean, score: number }> {
let variance;
let variance = -1;
try {
variance = await this.computeLaplacianVariance(imagePath);
} catch (e) {
Expand Down

0 comments on commit 4a97ec4

Please sign in to comment.