Page MenuHomePhabricator

D19728.id47138.diff
No OneTemporary

D19728.id47138.diff

Index: src/lint/linter/__tests__/ArcanistLinterTestCase.php
===================================================================
--- src/lint/linter/__tests__/ArcanistLinterTestCase.php
+++ 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
Wed, Oct 16, 9:14 AM (2 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6716905
Default Alt Text
D19728.id47138.diff (689 B)

Event Timeline