We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0de0798 commit a035390Copy full SHA for a035390
src/processTargets/targets/BaseTarget.ts
@@ -49,13 +49,13 @@ export default class BaseTarget implements Target {
49
50
/** Possibly add delimiter for positions before/after */
51
maybeAddDelimiter(text: string): string {
52
- if (this.position === "before") {
53
- return text + this.delimiter;
54
- }
55
- if (this.position === "after") {
56
- return this.delimiter + text;
57
58
- return text;
+ return this.delimiter == null
+ ? text
+ : this.position === "before"
+ ? text + this.delimiter
+ : this.position === "after"
+ ? this.delimiter + text
+ : text;
59
}
60
61
protected getRemovalContentRange(): Range {
0 commit comments