remove unnecessary .toString() (#103226)
This commit is contained in:
committed by
GitHub
parent
a1a46c96c4
commit
d40ee2149c
@@ -160,11 +160,11 @@ class ProcessRunner {
|
||||
}
|
||||
} on ProcessException catch (e) {
|
||||
final String message = 'Running "${commandLine.join(' ')}" in ${workingDirectory.path} '
|
||||
'failed with:\n${e.toString()}';
|
||||
'failed with:\n$e';
|
||||
throw PreparePackageException(message);
|
||||
} on ArgumentError catch (e) {
|
||||
final String message = 'Running "${commandLine.join(' ')}" in ${workingDirectory.path} '
|
||||
'failed with:\n${e.toString()}';
|
||||
'failed with:\n$e';
|
||||
throw PreparePackageException(message);
|
||||
}
|
||||
|
||||
|
||||
@@ -1654,7 +1654,7 @@ Future<void> _dartRunTest(String workingDirectory, {
|
||||
if (coverage != null)
|
||||
'--coverage=$coverage',
|
||||
if (perTestTimeout != null)
|
||||
'--timeout=${perTestTimeout.inMilliseconds.toString()}ms',
|
||||
'--timeout=${perTestTimeout.inMilliseconds}ms',
|
||||
if (testPaths != null)
|
||||
for (final String testPath in testPaths)
|
||||
testPath,
|
||||
|
||||
@@ -190,11 +190,11 @@ class ProcessRunner {
|
||||
}
|
||||
} on ProcessException catch (e) {
|
||||
final String message = 'Running "${commandLine.join(' ')}" in ${workingDirectory.path} '
|
||||
'failed with:\n${e.toString()}';
|
||||
'failed with:\n$e';
|
||||
throw UnpublishException(message);
|
||||
} on ArgumentError catch (e) {
|
||||
final String message = 'Running "${commandLine.join(' ')}" in ${workingDirectory.path} '
|
||||
'failed with:\n${e.toString()}';
|
||||
'failed with:\n$e';
|
||||
throw UnpublishException(message);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user