Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,7 @@ object EditorRegistry {
*/
@JvmStatic
fun write(c: Class<*>, f: Field?, node: Any?, values: EditorValue?): Boolean? {
val editor = getEditor(c) ?: return null
if (f == null || values == null) {
return null
} else {
return editor.write(f, node, values)
}
return getEditor(c)?.takeIf { f != null && values != null }?.write(f, node, values)
}

/**
Expand Down
Loading