blob: a7625ab022b46491f8bf129cd89c23371a76e71b [file] [log] [blame]
class Cam{}
def loadSettingsForm(Cam cam) {
def settings = getSettings(cam);
def json = [
id: cam.id,
name: cam.name,
]
return json
}
<selection>def getSettings(Cam cam) {
if (userService.currentUserOwnsCam(cam)) {
return gService.getCamSettings(cam)
}
return null;
}</selection>
-----
FAIL: Refactoring is not supported when return statement interrupts the execution flow