aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPExportInitializer.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPExportInitializer.m')
-rw-r--r--Source/SPExportInitializer.m6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/SPExportInitializer.m b/Source/SPExportInitializer.m
index 1e5c845e..cc9aa16e 100644
--- a/Source/SPExportInitializer.m
+++ b/Source/SPExportInitializer.m
@@ -397,10 +397,8 @@
// Create the actual file handles while dealing with errors (e.g. file already exists, etc) during creation
for (SPExportFile *exportFile in exportFiles)
- {
- SPExportFileHandleStatus status = [exportFile createExportFileHandle:NO];
-
- if (status == SPExportFileHandleCreated) {
+ {
+ if ([exportFile createExportFileHandle:NO] == SPExportFileHandleCreated) {
if ([exportFile exportFileNeedsCSVHeader]) {
[self writeCSVHeaderToExportFile:exportFile];
}