From 6339f7540655cb1c7b0c9b4a01ada702a7d77ffa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 7 Jul 2016 16:14:51 +0200 Subject: [PATCH] Fix: added some missing return statements --- blender_cloud/image_sharing.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/blender_cloud/image_sharing.py b/blender_cloud/image_sharing.py index a5b92e5..de521fd 100644 --- a/blender_cloud/image_sharing.py +++ b/blender_cloud/image_sharing.py @@ -199,12 +199,10 @@ class PILLAR_OT_image_share(pillar.PillarOperatorMixin, os.path.splitext(os.path.basename(context.blend_data.filepath))[0], context.scene.name, context.scene.render.file_extension) - await self.upload_via_tempdir(datablock, filename) - return + return await self.upload_via_tempdir(datablock, filename) if datablock.packed_file is not None: - await self.upload_packed_file(datablock) - return + return await self.upload_packed_file(datablock) if datablock.is_dirty: # We can handle dirty datablocks like this if we want. @@ -214,8 +212,7 @@ class PILLAR_OT_image_share(pillar.PillarOperatorMixin, # - Save unsaved data first; this can overwrite a file a user # didn't want to overwrite. filename = bpy.path.basename(datablock.filepath) - await self.upload_via_tempdir(datablock, filename) - return + return await self.upload_via_tempdir(datablock, filename) filepath = bpy.path.abspath(datablock.filepath) return await self.upload_file(filepath)