mirror of
https://github.com/jtdaugherty/brick.git
synced 2025-01-06 05:14:11 +03:00
Nit
This commit is contained in:
parent
27b1f50523
commit
f8a96fc624
@ -248,9 +248,7 @@ serializeCustomAttr cs c =
|
||||
|
||||
saveCustomizations :: FilePath -> Theme -> IO ()
|
||||
saveCustomizations path t = do
|
||||
let defSection = case serializeCustomAttr ["default"] <$> themeCustomDefaultAttr t of
|
||||
Nothing -> []
|
||||
Just ls -> ls
|
||||
let defSection = fromMaybe [] $ serializeCustomAttr ["default"] <$> themeCustomDefaultAttr t
|
||||
mapSection = []
|
||||
content = T.unlines $ defSection <> mapSection
|
||||
T.writeFile path content
|
||||
|
Loading…
Reference in New Issue
Block a user