Skip to content

Commit

Permalink
refactoring to avoid repetition
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierverdier committed Jan 18, 2016
1 parent 51cdc48 commit 62f4646
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/src/BranchParse.hs
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,7 @@ newRepo :: Parser MBranchInfo
newRepo =
do -- Parsec
string "Initial commit on "
branch <- many anyChar
eof
let bi = MkBranchInfo (MkBranch branch) Nothing
return (Just bi)
branchOnly

noBranch :: Parser MBranchInfo
noBranch =
Expand Down

0 comments on commit 62f4646

Please sign in to comment.