Skip to content

Commit 979f75e

Browse files
committed
Fix indent format
1 parent 017e1bd commit 979f75e

File tree

1 file changed

+28
-28
lines changed
  • Plugins/Flow.Launcher.Plugin.Calculator

1 file changed

+28
-28
lines changed

Plugins/Flow.Launcher.Plugin.Calculator/Main.cs

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ public void Init(PluginInitContext context)
4040
MagesEngine = new Engine(new Configuration
4141
{
4242
Scope = new Dictionary<string, object>
43-
{
44-
{ "e", Math.E }, // e is not contained in the default mages engine
45-
}
43+
{
44+
{ "e", Math.E }, // e is not contained in the default mages engine
45+
}
4646
});
4747
}
4848

@@ -109,10 +109,10 @@ public List<Result> Query(Query query)
109109
return
110110
[
111111
new Result
112-
{
113-
Title = Localize.flowlauncher_plugin_calculator_expression_not_complete(),
114-
IcoPath = IcoPath
115-
}
112+
{
113+
Title = Localize.flowlauncher_plugin_calculator_expression_not_complete(),
114+
IcoPath = IcoPath
115+
}
116116
];
117117
}
118118

@@ -134,27 +134,27 @@ public List<Result> Query(Query query)
134134
return
135135
[
136136
new Result
137-
{
138-
Title = newResult,
139-
IcoPath = IcoPath,
140-
Score = 300,
141-
// Check context nullability for unit testing
142-
SubTitle = Context == null ? string.Empty : Localize.flowlauncher_plugin_calculator_copy_number_to_clipboard(),
143-
CopyText = newResult,
144-
Action = c =>
145137
{
146-
try
147-
{
148-
Context.API.CopyToClipboard(newResult);
149-
return true;
150-
}
151-
catch (ExternalException)
138+
Title = newResult,
139+
IcoPath = IcoPath,
140+
Score = 300,
141+
// Check context nullability for unit testing
142+
SubTitle = Context == null ? string.Empty : Localize.flowlauncher_plugin_calculator_copy_number_to_clipboard(),
143+
CopyText = newResult,
144+
Action = c =>
152145
{
153-
Context.API.ShowMsgBox(Localize.flowlauncher_plugin_calculator_failed_to_copy());
154-
return false;
146+
try
147+
{
148+
Context.API.CopyToClipboard(newResult);
149+
return true;
150+
}
151+
catch (ExternalException)
152+
{
153+
Context.API.ShowMsgBox(Localize.flowlauncher_plugin_calculator_failed_to_copy());
154+
return false;
155+
}
155156
}
156157
}
157-
}
158158
];
159159
}
160160
}
@@ -165,10 +165,10 @@ public List<Result> Query(Query query)
165165
return
166166
[
167167
new Result
168-
{
169-
Title = Localize.flowlauncher_plugin_calculator_expression_not_complete(),
170-
IcoPath = IcoPath
171-
}
168+
{
169+
Title = Localize.flowlauncher_plugin_calculator_expression_not_complete(),
170+
IcoPath = IcoPath
171+
}
172172
];
173173
}
174174

0 commit comments

Comments
 (0)