Drop obsolete comment

This commit is contained in:
Richard Feldman 2022-07-03 21:57:41 -04:00
parent d2dbb0001a
commit e4d09e9e59
No known key found for this signature in database
GPG Key ID: 7E4127D1E4241798

View File

@ -1,7 +1,7 @@
use crate::annotation::{Formattable, Newlines, Parens};
use crate::spaces::{fmt_comments_only, fmt_spaces, NewlineAt};
use crate::Buf;
use roc_parse::ast::{Base, Pattern};
use roc_parse::ast::{Base, CommentOrNewline, Pattern};
pub fn fmt_pattern<'a, 'buf>(
buf: &mut Buf<'buf>,
@ -167,11 +167,11 @@ impl<'a> Formattable for Pattern<'a> {
} else {
fmt_spaces(buf, spaces.iter(), indent);
}
sub_pattern.format_with_options(buf, parens, newlines, indent);
}
SpaceAfter(sub_pattern, spaces) => {
sub_pattern.format_with_options(buf, parens, newlines, indent);
// if only_comments {
if !sub_pattern.is_multiline() {
fmt_comments_only(buf, spaces.iter(), NewlineAt::Bottom, indent)
} else {