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 |