Skip to content

Commit cef0405

Browse files
author
ouyangxiaochen
committed
Removing 'return' keyword in Scala method
1 parent 32b12a0 commit cef0405

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

repl/src/main/scala/org/apache/spark/repl/ExecutorClassLoader.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ class ExecutorClassLoader(
194194
ClassWriter.COMPUTE_FRAMES + ClassWriter.COMPUTE_MAXS)
195195
val cleaner = new ConstructorCleaner(name, cw)
196196
cr.accept(cleaner, 0)
197-
return cw.toByteArray
197+
cw.toByteArray
198198
} else {
199199
// Pass the class through unmodified
200200
val bos = new ByteArrayOutputStream
@@ -208,7 +208,7 @@ class ExecutorClassLoader(
208208
done = true
209209
}
210210
}
211-
return bos.toByteArray
211+
bos.toByteArray
212212
}
213213
}
214214

@@ -238,9 +238,9 @@ extends ClassVisitor(ASM5, cv) {
238238
mv.visitInsn(RETURN)
239239
mv.visitMaxs(-1, -1) // stack size and local vars will be auto-computed
240240
mv.visitEnd()
241-
return null
241+
null
242242
} else {
243-
return mv
243+
mv
244244
}
245245
}
246246
}

0 commit comments

Comments
 (0)