Skip to content

Commit

Permalink
Prevent failure if user avatar doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed May 26, 2020
1 parent f5db0e5 commit 84c97cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thehive/app/org/thp/thehive/controllers/v1/UserCtrl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ class UserCtrl @Inject() (
)
)
)
case None => Failure(NotFoundError(s"user $userId has no avatar"))
case _ => Failure(NotFoundError(s"user $userId has no avatar"))
}
}
}

0 comments on commit 84c97cc

Please sign in to comment.