Skip to content

Commit

Permalink
Remove useless throws of a Nothing-returning method.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjrd committed Dec 20, 2023
1 parent f07a2df commit 0ed0945
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasty-query/shared/src/main/scala/tastyquery/Symbols.scala
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ object Symbols {
* If a check fail, it should be reported with [[failNotCompleted]].
*/
protected def doCheckCompleted(): Unit =
if !isFlagsInitialized then throw failNotCompleted("flags were not initialized")
if myPrivateWithin == null then throw failNotCompleted("privateWithin was not initialized")
if myAnnotations == null then throw failNotCompleted("annotations were not initialized")
if !isFlagsInitialized then failNotCompleted("flags were not initialized")
if myPrivateWithin == null then failNotCompleted("privateWithin was not initialized")
if myAnnotations == null then failNotCompleted("annotations were not initialized")

private[tastyquery] def setTree(t: DefiningTreeType): this.type =
require(!isPackage, s"Multiple trees correspond to one package, a single tree cannot be assigned")
Expand Down

0 comments on commit 0ed0945

Please sign in to comment.