device: Add void return type tag to fp_device_delete_print_sync

This way it matches the other _sync functions that return a boolean just
to show that an error was set.
This commit is contained in:
Benjamin Berg
2021-04-30 15:03:39 +02:00
committed by Benjamin Berg
parent 9c0cd3fb23
commit 046607add6
2 changed files with 2 additions and 2 deletions

View File

@@ -1716,7 +1716,7 @@ fp_device_capture_sync (FpDevice *device,
*
* Delete a given print from the device.
*
* Returns: %FALSE on error, %TRUE otherwise
* Returns: (type void): %FALSE on error, %TRUE otherwise
*/
gboolean
fp_device_delete_print_sync (FpDevice *device,

View File

@@ -1007,7 +1007,7 @@ class VirtualDeviceStorage(VirtualDevice):
def cleanup_device_storage(self):
if self.dev.is_open() and not self.dev.props.removed:
for print in self.dev.list_prints_sync():
self.assertTrue(self.dev.delete_print_sync(print, None))
self.dev.delete_print_sync(print, None)
def test_device_properties(self):
self.assertEqual(self.dev.get_driver(), 'virtual_device_storage')