]> git.lizzy.rs Git - rust.git/commitdiff
std: Untabify
authorBrian Anderson <banderson@mozilla.com>
Sat, 7 Jan 2012 00:37:04 +0000 (16:37 -0800)
committerBrian Anderson <banderson@mozilla.com>
Sat, 7 Jan 2012 00:37:04 +0000 (16:37 -0800)
src/libstd/fs.rs

index cf7173f09576e7561670d1e7b89c428bfd526bb3..2a65559db5aa97106b89617831826803b793a020 100644 (file)
@@ -417,15 +417,15 @@ fn reterminate(orig: path, new: path) -> path {
 fn homedir() -> option<path> {
     ret alt generic_os::getenv("HOME") {
         some(p) {
-           if !str::is_empty(p) {
+            if !str::is_empty(p) {
                 some(p)
             } else {
-               secondary()
-           }
-       }
-       none. {
-           secondary()
-       }
+                secondary()
+            }
+        }
+        none. {
+            secondary()
+        }
     };
 
     #[cfg(target_os = "linux")]
@@ -440,9 +440,9 @@ fn secondary() -> option<path> {
         option::maybe(none, generic_os::getenv("USERPROFILE")) {|p|
             if !str::is_empty(p) {
                 some(p)
-           } else {
-               none
-           }
+            } else {
+                none
+            }
         }
     }
 }