Currently, the implicit return value from cfs_register_file()
accidentally makes the module return a true value. The
cfs_register_file() function only implicitly returns something, so a
future change there could easily break compilation with the mostly
unrelated module here.

Signed-off-by: Fiona Ebner <[email protected]>
---
 src/PVE/TokenConfig.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/PVE/TokenConfig.pm b/src/PVE/TokenConfig.pm
index dfff54b..bad133f 100644
--- a/src/PVE/TokenConfig.pm
+++ b/src/PVE/TokenConfig.pm
@@ -86,3 +86,5 @@ sub delete_token {
 
     die "$@\n" if defined($@);
 }
+
+1;
-- 
2.47.3




Reply via email to