Skip to content

Commit b7c7986

Browse files
committed
Resolved SonarQube warning
1 parent 7403690 commit b7c7986

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/github/underscore/Json.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ private void pauseCapture() {
770770
private String endCapture() {
771771
int end = current == -1 ? index : index - 1;
772772
String captured;
773-
if (captureBuffer.length() > 0) {
773+
if (!captureBuffer.isEmpty()) {
774774
captureBuffer.append(json, captureStart, end);
775775
captured = captureBuffer.toString();
776776
captureBuffer.setLength(0);

0 commit comments

Comments
 (0)