We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a6b8c4 commit aff958fCopy full SHA for aff958f
extra/Lamdera/CLI/Live.hs
@@ -336,7 +336,7 @@ serveExperimentalWrite root path = do
336
fullpath = root </> (T.unpack path)
337
debug $ "_x/write: " ++ show fullpath
338
339
- liftIO $ writeUtf8 fullpath (TL.toStrict $ TL.decodeUtf8 rbody)
+ liftIO $ writeIfDifferent fullpath (TL.toStrict $ TL.decodeUtf8 rbody)
340
jsonResponse $ B.byteString $ "{ written: '" <> T.encodeUtf8 (T.pack fullpath) <> "'}"
341
342
0 commit comments