mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 11:52:19 +00:00
Fix some indentation
This commit is contained in:
parent
26f77ecffd
commit
71478c297d
1 changed files with 11 additions and 11 deletions
|
@ -2338,17 +2338,17 @@ fn update<'a>(
|
|||
// This wasn't a URL, so it must be a filesystem path.
|
||||
let root_module: PathBuf = src_dir.join(package_str);
|
||||
let root_module_dir = root_module.parent().unwrap_or_else(|| {
|
||||
if root_module.is_file() {
|
||||
// Files must have parents!
|
||||
internal_error!("Somehow I got a file path to a real file on the filesystem that has no parent!");
|
||||
} else {
|
||||
// TODO make this a nice report
|
||||
todo!(
|
||||
"platform module {:?} was not a file.",
|
||||
package_str
|
||||
)
|
||||
}
|
||||
}).into();
|
||||
if root_module.is_file() {
|
||||
// Files must have parents!
|
||||
internal_error!("Somehow I got a file path to a real file on the filesystem that has no parent!");
|
||||
} else {
|
||||
// TODO make this a nice report
|
||||
todo!(
|
||||
"platform module {:?} was not a file.",
|
||||
package_str
|
||||
)
|
||||
}
|
||||
}).into();
|
||||
|
||||
ShorthandPath::RelativeToSrc {
|
||||
root_module_dir,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue