File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
cardano-node/src/Cardano/Node/Tracing Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ import Ouroboros.Network.Subscription.Worker (SubscriptionTrace (..))
95
95
import Ouroboros.Network.TxSubmission.Inbound (TraceTxSubmissionInbound )
96
96
import Ouroboros.Network.TxSubmission.Outbound (TraceTxSubmissionOutbound )
97
97
98
- import Control.Exception (SomeException , bracket )
98
+ import Control.Exception (SomeException )
99
99
import Control.Monad (forM_ )
100
100
import Data.Aeson.Types (ToJSON )
101
101
import Data.Proxy (Proxy (.. ))
@@ -781,7 +781,5 @@ docTracersSecondPhase outputFileName mbMetricsHelpFilename trConfig bl = do
781
781
doWrite f (docuResultsToMetricsHelptext bl)
782
782
where
783
783
doWrite outfile text =
784
- bracket
785
- (openFile outfile WriteMode )
786
- hClose
787
- (\ handle -> hSetEncoding handle utf8 >> T. hPutStr handle text)
784
+ withFile outfile WriteMode $ \ handle ->
785
+ hSetEncoding handle utf8 >> T. hPutStr handle text
You can’t perform that action at this time.
0 commit comments