Skip to content

Commit

Permalink
#2425: refactored duplicated line.
Browse files Browse the repository at this point in the history
  • Loading branch information
levBagryansky committed Aug 25, 2023
1 parent 0faf11e commit 754bb3e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions eo-runtime/src/main/java/org/eolang/Universe.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,8 @@ public int find(final String name) {
.split("\\.");
if ("Q".equals(atts[0])) {
accum = Phi.Φ;
atts[0] = "";
} else if ("$".equals(atts[0])) {
accum = this.connector;
atts[0] = "";
} else {
throw new ExFailure(
String.format(
Expand All @@ -98,6 +96,7 @@ public int find(final String name) {
)
);
}
atts[0] = "";
for (final String att: atts) {
if (!"".equals(att)) {
accum = accum.attr(att).get();
Expand Down

0 comments on commit 754bb3e

Please sign in to comment.