remove unnecessary string escapes (#50096)

This commit is contained in:
Alexandre Ardhuin
2020-02-05 08:00:32 +01:00
committed by GitHub
parent 4b8efad99b
commit 94c7e823be
4 changed files with 11 additions and 11 deletions

View File

@@ -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);

View File

@@ -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.