Permalink
Browse files

Refactor is_tap to use a natural control flow

  • Loading branch information...
1 parent eda3b9e commit 8c4680b8b0d82b42ca5161d0fdb85474cc65c6f2 @leto committed Jan 23, 2010
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/Tapir/Parser.pir
@@ -119,11 +119,10 @@ Written and maintained by Jonathan "Duke" Leto C<< jonathan@leto.net >>.
$S0 = substr tapline, 0, 7
if $S0 == "not ok " goto yes
- goto no
- yes:
- .return( 1 )
no:
.return( 0 )
+ yes:
+ .return( 1 )
.end
# parse_plan returns the expected number of tests given a plan line as a string

0 comments on commit 8c4680b

Please sign in to comment.