aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/SPExportFileUtilities.m8
-rw-r--r--Source/SPExportInitializer.m6
2 files changed, 5 insertions, 9 deletions
diff --git a/Source/SPExportFileUtilities.m b/Source/SPExportFileUtilities.m
index 4cb39455..76650556 100644
--- a/Source/SPExportFileUtilities.m
+++ b/Source/SPExportFileUtilities.m
@@ -106,15 +106,13 @@
NSUInteger i = 0;
for (SPExportFile *file in files)
- {
- SPExportFileHandleStatus status = [file exportFileHandleStatus];
-
- if (status == SPExportFileHandleExists) {
+ {
+ if ([file exportFileHandleStatus] == SPExportFileHandleExists) {
i++;
}
// For file handles that we failed to create for some unknown reason, ignore them and remove any
// exporters that are associated with them.
- else if (status == SPExportFileHandleFailed) {
+ else if ([file exportFileHandleStatus] == SPExportFileHandleFailed) {
for (SPExporter *exporter in exporters)
{
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];
}