Skip to content

Commit

Permalink
Flip default around so that we don't need the else.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Newman committed Sep 27, 2020
1 parent e075722 commit 28572b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/com/amihaiemil/eoyaml/ReadPlainScalar.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ final class ReadPlainScalar extends BaseScalar {
*/
@Override
public String value() {
final String trimmed = this.scalar.trimmed();
String value = trimmed;
String value = this.scalar.trimmed();
Matcher matcher = this.escapedSequenceScalar(this.scalar);
if(matcher.matches()) {
if (matcher.group(QUOTED_LITERAL_GROUP) != null) {
Expand Down

0 comments on commit 28572b2

Please sign in to comment.