Skip to content
Snippets Groups Projects
Commit c6f50478 authored by George Malandrakis's avatar George Malandrakis
Browse files

Code cleanup

parent 66672706
No related branches found
No related tags found
No related merge requests found
Pipeline #14371 failed
...@@ -565,11 +565,11 @@ impl<'a, D: Disk> Transaction<'a, D> { ...@@ -565,11 +565,11 @@ impl<'a, D: Disk> Transaction<'a, D> {
ctime: u64, ctime: u64,
ctime_nsec: u32, ctime_nsec: u32,
) -> Result<TreeData<Node>> { ) -> Result<TreeData<Node>> {
if name.contains(':') { //TODO CHANGE 4 if name.contains(':') {
return Err(Error::new(EINVAL)); return Err(Error::new(EINVAL));
} }
if self.find_node(parent_ptr, name).is_ok() { //TODO CHANGE 5 if self.find_node(parent_ptr, name).is_ok() {
return Err(Error::new(EEXIST)); return Err(Error::new(EEXIST));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment