Skip to content

Commit

Permalink
small refactoring
Browse files Browse the repository at this point in the history
Summary: left over from previous iteration in D63238392

Reviewed By: malanka

Differential Revision: D63382969

fbshipit-source-id: 579c8a77d0adb0e2776c410b696a0a2a19c59eae
  • Loading branch information
Philippe Bidinger authored and facebook-github-bot committed Sep 25, 2024
1 parent 13c5a47 commit 4a67690
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions glean/glass/Glean/Glass/Handler.hs
Original file line number Diff line number Diff line change
Expand Up @@ -924,9 +924,8 @@ fetchDocumentSymbols
fetchDocumentSymbols env@Glass.Env{..} (FileReference scsrepo path)
repoPath mlimit wantedRevision
exactRevision includeRefs includeXlangRefs fetchContentHash
b mlang dbInfo =
do
(docSyms, queryLog, logger) <- backendRunHaxl b env $ do
b mlang dbInfo = do
backendRunHaxl b env $ do
--
-- we pick the first db in the list that has the full FileInfo{..}
-- and in exact_revision mode the rev also has to match precisely
Expand Down Expand Up @@ -1013,8 +1012,6 @@ fetchDocumentSymbols [email protected]{..} (FileReference scsrepo path)
return (DocumentSymbols { srcFile = Just srcFile, .. },
gleanDataLog, merr)

return (docSyms, queryLog, logger)

where
revisionAcceptable :: Glean.Repo -> Bool
revisionAcceptable = case wantedRevision of
Expand Down

0 comments on commit 4a67690

Please sign in to comment.