Skip to content

Commit d03cd7f

Browse files
committed
remove 'hint' from loneElementOption
1 parent fc9d8a3 commit d03cd7f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

codepropertygraph/src/main/scala/io/shiftleft/Implicits.scala

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,12 @@ object Implicits {
4343
}
4444
}
4545

46-
/** @see {{{loneElementOption(hint)}}} */
47-
def loneElementOption: Option[A] =
48-
loneElementOption(hint = None)
49-
5046
/** @return
5147
* {{{Some(element)}}} if the Iterable has exactly one element, or {{{None}}} if the Iterable has zero or more
5248
* than 1 element. Note: if the lone element is {{{null}}}, this will return {{{Some(null)}}}, which is in
5349
* accordance with how {{{headOption}}} works.
5450
*/
55-
def loneElementOption(hint: String | None.type = None): Option[A] = {
51+
def loneElementOption: Option[A] = {
5652
val iter = iterable.iterator
5753
if (iter.isEmpty) {
5854
None

0 commit comments

Comments
 (0)