lib/util: Some style conversion
I saw a few instances of `glnx_set_error_from_errno() + return FALSE`, and fixed them and did a bit of style conversion. Closes: #895 Approved by: jlebon
This commit is contained in:
1 parent
9a3555a74b
commit
2414704609
2 files changed
+13
-51
No files matched your search
@@ -100,10 +100,7 @@ ot_gfile_ensure_unlinked (GFile *path,
|
||||
if (unlink (gs_file_get_path_cached (path)) != 0)
|
||||
{
|
||||
if (errno != ENOENT)
|
||||
{
|
||||
glnx_set_error_from_errno (error);
|
||||
return FALSE;
|
||||
}
|
||||
return glnx_throw_errno_prefix (error, "unlink(%s)", gs_file_get_path_cached (path));
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user