Remove unused force param.
This commit is contained in:
parent
d042ddfdda
commit
c1ba5e6ac8
@ -131,13 +131,13 @@ export default class Buffer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a space to the buffer unless it is compact (override with force).
|
* Add a space to the buffer unless it is compact.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
space(force?: boolean) {
|
space() {
|
||||||
if (!force && this.format.compact) return;
|
if (this.format.compact) return;
|
||||||
|
|
||||||
if (force || this.buf && !this.isLast(" ") && !this.isLast("\n")) {
|
if (this.buf && !this.isLast(" ") && !this.isLast("\n")) {
|
||||||
this.push(" ");
|
this.push(" ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user