Skip to content

Commit

Permalink
feedback for PR #5997
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmeier committed Sep 26, 2024
1 parent f346ad6 commit fbe6675
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cardano-node/src/Cardano/Node/Tracing/Documentation.hs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ import Ouroboros.Network.Subscription.Worker (SubscriptionTrace (..))
import Ouroboros.Network.TxSubmission.Inbound (TraceTxSubmissionInbound)
import Ouroboros.Network.TxSubmission.Outbound (TraceTxSubmissionOutbound)

import Control.Exception (SomeException, bracket)
import Control.Exception (SomeException)
import Control.Monad (forM_)
import Data.Aeson.Types (ToJSON)
import Data.Proxy (Proxy (..))
Expand Down Expand Up @@ -781,7 +781,5 @@ docTracersSecondPhase outputFileName mbMetricsHelpFilename trConfig bl = do
doWrite f (docuResultsToMetricsHelptext bl)
where
doWrite outfile text =
bracket
(openFile outfile WriteMode)
hClose
(\handle -> hSetEncoding handle utf8 >> T.hPutStr handle text)
withFile outfile WriteMode $ \handle ->
hSetEncoding handle utf8 >> T.hPutStr handle text

0 comments on commit fbe6675

Please sign in to comment.