Follow-up from "Default to the original suffix when prefix is empty"
The following discussion from !331 (merged) should be addressed:
-
@tle_gitlab started a discussion: suggestion (non-blocking): What do you think about combine these conditions instead of using a nested if? And since these conditions are the same, maybe we can clump them together.
if len(prefix) <= 0 and completion.metadata: assert len(prefix) == completion.metadata.components["prefix"].length assert len(suffix) == completion.metadata.components["suffix"].length