Page MenuHomePhabricator

D19728.diff
No OneTemporary

D19728.diff

diff --git a/src/lint/linter/__tests__/ArcanistLinterTestCase.php b/src/lint/linter/__tests__/ArcanistLinterTestCase.php
--- a/src/lint/linter/__tests__/ArcanistLinterTestCase.php
+++ b/src/lint/linter/__tests__/ArcanistLinterTestCase.php
@@ -87,14 +87,8 @@
$caught_exception = false;
try {
- $tmp = new TempFile($basename);
- Filesystem::writeFile($tmp, $data);
- $full_path = (string)$tmp;
-
- $mode = idx($config, 'mode', 0644);
- if ($mode) {
- Filesystem::changePermissions($tmp, octdec($mode));
- }
+ $mode = idx($config, 'mode', '0644');
+ $mode = octdec($mode);
$path_name = idx($config, 'path', $basename);

File Metadata

Mime Type
text/plain
Expires
Fri, Oct 25, 12:28 PM (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6748257
Default Alt Text
D19728.diff (687 B)

Event Timeline