Skip to content

Commit b5e94e3

Browse files
committed
Fixed case when data has no content.
1 parent c86ae05 commit b5e94e3

File tree

3 files changed

+11
-42
lines changed

3 files changed

+11
-42
lines changed

Podfile.lock

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,17 @@ DEPENDENCIES:
88
- Nimble
99
- Quick
1010

11+
SPEC REPOS:
12+
https://github.com/cocoapods/specs.git:
13+
- Alamofire
14+
- Nimble
15+
- Quick
16+
1117
SPEC CHECKSUMS:
1218
Alamofire: 907e0a98eb68cdb7f9d1f541a563d6ac5dc77b25
1319
Nimble: 7f5a9c447a33002645a071bddafbfb24ea70e0ac
1420
Quick: 58d203b1c5e27fff7229c4c1ae445ad7069a7a08
1521

1622
PODFILE CHECKSUM: d6370329bd52b0306d7c72b4a2cf75a0248944c9
1723

18-
COCOAPODS: 1.4.0
24+
COCOAPODS: 1.5.3

Vox.xcodeproj/project.pbxproj

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -333,13 +333,6 @@
333333
path = Assets;
334334
sourceTree = "<group>";
335335
};
336-
38E00CFC2038D30400B45B4C /* Helpers */ = {
337-
isa = PBXGroup;
338-
children = (
339-
);
340-
path = Helpers;
341-
sourceTree = "<group>";
342-
};
343336
38E00CFF20390C2D00B45B4C /* Networking */ = {
344337
isa = PBXGroup;
345338
children = (
@@ -434,7 +427,6 @@
434427
3872FA3120379F8300CC26BD /* Vox.h */,
435428
38E00D42203911B700B45B4C /* Enum */,
436429
38E00CFF20390C2D00B45B4C /* Networking */,
437-
38E00CFC2038D30400B45B4C /* Helpers */,
438430
3872FA532037ABC600CC26BD /* Protocol */,
439431
3872FA4820379FD600CC26BD /* Class */,
440432
);
@@ -474,7 +466,6 @@
474466
3872FA2A20379F8300CC26BD /* Frameworks */,
475467
3872FA2B20379F8300CC26BD /* Headers */,
476468
3872FA2C20379F8300CC26BD /* Resources */,
477-
B69D21D2071A346B1D4FF9FF /* [CP] Copy Pods Resources */,
478469
);
479470
buildRules = (
480471
);
@@ -494,7 +485,6 @@
494485
3872FA3420379F8300CC26BD /* Frameworks */,
495486
3872FA3520379F8300CC26BD /* Resources */,
496487
6F291A416A23E12D3201311E /* [CP] Embed Pods Frameworks */,
497-
8CD5B7FC9E9936A372617039 /* [CP] Copy Pods Resources */,
498488
);
499489
buildRules = (
500490
);
@@ -635,36 +625,6 @@
635625
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-VoxTests/Pods-VoxTests-frameworks.sh\"\n";
636626
showEnvVarsInLog = 0;
637627
};
638-
8CD5B7FC9E9936A372617039 /* [CP] Copy Pods Resources */ = {
639-
isa = PBXShellScriptBuildPhase;
640-
buildActionMask = 2147483647;
641-
files = (
642-
);
643-
inputPaths = (
644-
);
645-
name = "[CP] Copy Pods Resources";
646-
outputPaths = (
647-
);
648-
runOnlyForDeploymentPostprocessing = 0;
649-
shellPath = /bin/sh;
650-
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-VoxTests/Pods-VoxTests-resources.sh\"\n";
651-
showEnvVarsInLog = 0;
652-
};
653-
B69D21D2071A346B1D4FF9FF /* [CP] Copy Pods Resources */ = {
654-
isa = PBXShellScriptBuildPhase;
655-
buildActionMask = 2147483647;
656-
files = (
657-
);
658-
inputPaths = (
659-
);
660-
name = "[CP] Copy Pods Resources";
661-
outputPaths = (
662-
);
663-
runOnlyForDeploymentPostprocessing = 0;
664-
shellPath = /bin/sh;
665-
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Vox/Pods-Vox-resources.sh\"\n";
666-
showEnvVarsInLog = 0;
667-
};
668628
/* End PBXShellScriptBuildPhase section */
669629

670630
/* Begin PBXSourcesBuildPhase section */

Vox/Core/Networking/Class/Request.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ public class Request<ResourceType: Resource, SuccessCallbackType>: DataSourceRes
5050
self.failureBlock?(__error)
5151
}
5252
} else if let success = self.successBlock as? DataSource<ResourceType>.OptionalResourceSuccessBlock {
53-
guard let data = data else {
53+
guard
54+
let data = data,
55+
!data.isEmpty
56+
else {
5457
success(nil)
5558
return
5659
}

0 commit comments

Comments
 (0)