From d5e54005ce97e51bd6306647bb128129e779f6ab Mon Sep 17 00:00:00 2001 From: Zorg Date: Tue, 20 Dec 2016 20:47:59 -0500 Subject: [PATCH] Fix static analyzer warning by marking method return type as nullable --- Autoupdate/SUInstaller.h | 2 +- Autoupdate/SUInstaller.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Autoupdate/SUInstaller.h b/Autoupdate/SUInstaller.h index 025b668f..10c2e703 100644 --- a/Autoupdate/SUInstaller.h +++ b/Autoupdate/SUInstaller.h @@ -18,7 +18,7 @@ NS_ASSUME_NONNULL_BEGIN + (nullable id)installerForHost:(SUHost *)host expectedInstallationType:(NSString *)expectedInstallationType updateDirectory:(NSString *)updateDirectory versionComparator:(id )comparator error:(NSError **)error; -+ (NSString *)installSourcePathInUpdateFolder:(NSString *)inUpdateFolder forHost:(SUHost *)host isPackage:(BOOL *)isPackagePtr isGuided:(nullable BOOL *)isGuidedPtr; ++ (nullable NSString *)installSourcePathInUpdateFolder:(NSString *)inUpdateFolder forHost:(SUHost *)host isPackage:(BOOL *)isPackagePtr isGuided:(nullable BOOL *)isGuidedPtr; @end diff --git a/Autoupdate/SUInstaller.m b/Autoupdate/SUInstaller.m index a796acab..51213139 100644 --- a/Autoupdate/SUInstaller.m +++ b/Autoupdate/SUInstaller.m @@ -32,7 +32,7 @@ return aliasFlag.boolValue && directoryFlag.boolValue; } -+ (NSString *)installSourcePathInUpdateFolder:(NSString *)inUpdateFolder forHost:(SUHost *)host isPackage:(BOOL *)isPackagePtr isGuided:(BOOL *)isGuidedPtr ++ (nullable NSString *)installSourcePathInUpdateFolder:(NSString *)inUpdateFolder forHost:(SUHost *)host isPackage:(BOOL *)isPackagePtr isGuided:(BOOL *)isGuidedPtr { SUParameterAssert(inUpdateFolder); SUParameterAssert(host);