Commits

Stefan Saasen committed beea0d5

Code cleanup

  • Participants
  • Parent commits 979c024

Comments (0)

Files changed (2)

File logparser/src/Stash/Log/Analyser.hs

                                 in map (protocolStats formatLogDate) groups
 
 protocolStats :: (LogDate -> String) -> [LogLine] -> ProtocolStats
-protocolStats formatLogDate logLines = foldl' aggregate (ProtocolStats "" 0 0) logLines
+protocolStats formatLogDate = foldl' aggregate (ProtocolStats "" 0 0)
                         where aggregate (ProtocolStats date ssh http) logLine =
                                     let !ssh'   = if isSsh logLine then ssh + 1 else ssh
                                         !http'  = if isHttp logLine then http + 1 else http

File logparser/src/Stash/Log/Parser.hs

 -- http: "GET /scm/CONF/confluence.git/info/refs HTTP/1.1"
 -- ssh: git-upload-pack '/CONF/teamcal.git'
 parseAction :: Parser Action
-parseAction = do choice [parseSshAction, parseHttpAction]
+parseAction = choice [parseSshAction, parseHttpAction]
 
 parseSshAction :: Parser Action
 parseSshAction = do