Skip to content

Commit

Permalink
Replace loop label + continue with a break inside a switch
Browse files Browse the repository at this point in the history
  • Loading branch information
nemanja-boric-sociomantic authored and Gavin Norman committed Apr 18, 2018
1 parent 1e159aa commit 763dc92
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/dlsnode/neo/request/GetRange.d
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,6 @@ private scope class GetRangeImpl_v0: GetRangeProtocol_v0
override protected bool getNextRecord ( out time_t timestamp, ref void[] value,
out bool wait_for_data)
{
record_loop:
for (;;)
{
auto res = this.iterator.next(this.job_notification, timestamp, value);
Expand All @@ -358,7 +357,7 @@ record_loop:
case RecordRead:
if (!this.filterRecord(timestamp, value))
{
continue record_loop;
break;
}
return true;
default:
Expand Down Expand Up @@ -708,7 +707,6 @@ private scope class GetRangeImpl_v1: GetRangeProtocol_v1
override protected bool getNextRecord ( out time_t timestamp, ref void[] value,
out bool wait_for_data)
{
record_loop:
for (;;)
{
auto res = this.iterator.next(this.job_notification, timestamp, value);
Expand All @@ -725,7 +723,7 @@ record_loop:
case RecordRead:
if (!this.filterRecord(timestamp, value))
{
continue record_loop;
break;
}
return true;
default:
Expand Down

0 comments on commit 763dc92

Please sign in to comment.