Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
reese authored Aug 20, 2023
1 parent 3ed0cdb commit bd5a69d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
5 changes: 3 additions & 2 deletions fixtures/large/rspec_mocks_proxy_expected.rb
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,9 @@ def initialize(source_space, *args)
# That's what this method (together with `original_unbound_method_handle_from_ancestor_for`)
# does.
def original_method_handle_for(message)
unbound_method = superclass_proxy && superclass_proxy
.original_unbound_method_handle_from_ancestor_for(message.to_sym)
unbound_method = superclass_proxy && superclass_proxy.original_unbound_method_handle_from_ancestor_for(
message.to_sym
)

return super unless unbound_method
unbound_method.bind(object)
Expand Down
6 changes: 4 additions & 2 deletions fixtures/small/breakables_over_line_length_expected.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
ReallyLongThing
]

if Opus::Foo::Bar::Baz::ReallyLongName::Example::ExampleExampleExampleExampleExampleExampleExampleExample
.calls_a_thing(a, b)
if Opus::Foo::Bar::Baz::ReallyLongName::Example::ExampleExampleExampleExampleExampleExampleExampleExample.calls_a_thing(
a,
b
)
puts("")
end
6 changes: 2 additions & 4 deletions librubyfmt/src/render_targets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -428,10 +428,8 @@ impl BreakableCallChainEntry {
),
);

if let Some(AbstractLineToken::BreakableEntry(be)) = tokens.last() {
if be.is_multiline() {
tokens.pop();
}
if let Some(AbstractLineToken::BreakableEntry(_)) = tokens.last() {
tokens.pop();
}
tokens
.into_iter()
Expand Down

0 comments on commit bd5a69d

Please sign in to comment.