Skip to content

Commit

Permalink
Add explicit unit type
Browse files Browse the repository at this point in the history
  • Loading branch information
zsxwing committed Dec 17, 2014
1 parent be42bcf commit 52247f5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ private[streaming] class ContextWaiter {
// Guarded by "lock"
private var stopped: Boolean = false

def notifyError(e: Throwable) = {
def notifyError(e: Throwable): Unit = {
lock.lock()
try {
error = e
Expand All @@ -41,7 +41,7 @@ private[streaming] class ContextWaiter {
}
}

def notifyStop() = {
def notifyStop(): Unit = {
lock.lock()
try {
stopped = true
Expand Down

0 comments on commit 52247f5

Please sign in to comment.