mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
removed redundant derefs
This commit is contained in:
parent
0637344361
commit
dd85caa85a
1 changed files with 3 additions and 3 deletions
|
@ -315,9 +315,9 @@ fn starts_with_newline(expr: &Expr) -> bool {
|
|||
|
||||
match expr {
|
||||
SpaceBefore(_, comment_or_newline) => {
|
||||
if !(**comment_or_newline).is_empty() {
|
||||
if !comment_or_newline.is_empty() {
|
||||
// safe because we check the length before
|
||||
(**comment_or_newline).get(0).unwrap().is_newline()
|
||||
comment_or_newline.get(0).unwrap().is_newline()
|
||||
} else {
|
||||
false
|
||||
}
|
||||
|
@ -325,7 +325,7 @@ fn starts_with_newline(expr: &Expr) -> bool {
|
|||
SpaceAfter(_, comment_or_newline) => {
|
||||
if !(**comment_or_newline).is_empty() {
|
||||
// safe because we check the length before
|
||||
(**comment_or_newline).get(0).unwrap().is_newline()
|
||||
comment_or_newline.get(0).unwrap().is_newline()
|
||||
} else {
|
||||
false
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue