Skip to content

main: Fix unnecessary return value from ‘file_storage’

Seong-Joong Kim requested to merge sungjungk/fprintd:fix-return-handling into master


  • Currently, ‘file_storage_get_basestore_for_username()’ function always returns 0.
  • It is not necessary to have error-handling routine immediately after calling the function.
  • Also, it would be better to replace ‘0’ with meaningful value and remove needless error-handling routine.


  • Change the return value; from ’0’ to ‘basestore’ path information.
  • Remove error-handling routine immediately after the above function
  • The path info that is originally from g_build_filename() doesn’t need to handle error condition.

Merge request reports