Skip to content

Commit d708728

Browse files
committed
style: format
1 parent a22e319 commit d708728

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

Core/Core.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ E.PopupDialogs.WINDTOOLS_OPEN_CHANGELOG = {
5656
E.PopupDialogs.WINDTOOLS_BUTTON_FIX_RELOAD = {
5757
text = format(
5858
"%s\n%s\n\n%s",
59-
format(L["%s detects CVar %s has been changed."], W.Title, C.StringByTemplate("ActionButtonUseKeyDown", "blue-400")),
59+
format(
60+
L["%s detects CVar %s has been changed."],
61+
W.Title,
62+
C.StringByTemplate("ActionButtonUseKeyDown", "blue-400")
63+
),
6064
L["It will cause some buttons not to work properly before UI reloading."],
6165
C.StringByTemplate(
6266
format(L["You can disable this alert in [%s]-[%s]-[%s]"], W.Title, L["Advanced"], L["Game Fix"]),

Core/Update.lua

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,15 @@ local function UpdateMessage(text, from)
2323
end
2424

2525
E:Delay(1, function()
26-
print(text .. format("(%.2f -> %s)...",
27-
C.StringByTemplate(from, "neutral-300"),
28-
C.StringByTemplate(W.Version, "emerald-400")) .. DONE_ICON)
26+
print(
27+
text
28+
.. format(
29+
"(%.2f -> %s)...",
30+
C.StringByTemplate(from, "neutral-300"),
31+
C.StringByTemplate(W.Version, "emerald-400")
32+
)
33+
.. DONE_ICON
34+
)
2935
end)
3036
end
3137

0 commit comments

Comments
 (0)