remove unnecessary string escapes (#50096)
This commit is contained in:
committed by
GitHub
parent
4b8efad99b
commit
94c7e823be
@@ -183,16 +183,16 @@ public class DummyPluginAClass {
|
||||
const String kExpectedPluginsDependenciesContent =
|
||||
'['
|
||||
'{'
|
||||
'\"name\":\"plugin_a\",'
|
||||
'\"dependencies\":[\"plugin_b\",\"plugin_c\"]'
|
||||
'"name":"plugin_a",'
|
||||
'"dependencies":["plugin_b","plugin_c"]'
|
||||
'},'
|
||||
'{'
|
||||
'\"name\":\"plugin_b\",'
|
||||
'\"dependencies\":[]'
|
||||
'"name":"plugin_b",'
|
||||
'"dependencies":[]'
|
||||
'},'
|
||||
'{'
|
||||
'\"name\":\"plugin_c\",'
|
||||
'\"dependencies\":[]'
|
||||
'"name":"plugin_c",'
|
||||
'"dependencies":[]'
|
||||
'}'
|
||||
']';
|
||||
final String graphString = json.encode(dependencyGraph);
|
||||
|
||||
@@ -85,7 +85,7 @@ Stream<RunningProcessInfo> windowsRunningProcesses(String processName) async* {
|
||||
// a process.
|
||||
// See: https://docs.microsoft.com/en-us/windows/desktop/cimwin32prov/win32-process
|
||||
final String script = processName != null
|
||||
? '"Get-CimInstance Win32_Process -Filter \\\"name=\'$processName\'\\\" | Select-Object ProcessId,CreationDate,CommandLine | Format-Table -AutoSize | Out-String -Width 4096"'
|
||||
? '"Get-CimInstance Win32_Process -Filter \\"name=\'$processName\'\\" | Select-Object ProcessId,CreationDate,CommandLine | Format-Table -AutoSize | Out-String -Width 4096"'
|
||||
: '"Get-CimInstance Win32_Process | Select-Object ProcessId,CreationDate,CommandLine | Format-Table -AutoSize | Out-String -Width 4096"';
|
||||
// Unfortunately, there doesn't seem to be a good way to get ProcessManager to
|
||||
// run this. May be a bug in Dart.
|
||||
|
||||
Reference in New Issue
Block a user