From 06f52deaf9114971e76c0d5971ffbb77fd8f6961 Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Fri, 1 Dec 2017 16:25:33 -0800 Subject: [PATCH] address some additional compiler warnings --- SignalMessaging/utils/DebugLogger.m | 2 +- SignalServiceKit/src/Util/MIMETypeUtil.m | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/SignalMessaging/utils/DebugLogger.m b/SignalMessaging/utils/DebugLogger.m index a4be908e9..5e2fb16ad 100644 --- a/SignalMessaging/utils/DebugLogger.m +++ b/SignalMessaging/utils/DebugLogger.m @@ -106,7 +106,7 @@ // This should be redundant with the logic above. [logPathSet addObjectsFromArray:self.fileLogger.logFileManager.unsortedLogFilePaths]; NSArray *logPaths = logPathSet.allObjects; - return [logPaths sortedArrayUsingSelector:@selector(compare:)]; + return [logPaths sortedArrayUsingSelector:@selector((compare:))]; } - (void)wipeLogs diff --git a/SignalServiceKit/src/Util/MIMETypeUtil.m b/SignalServiceKit/src/Util/MIMETypeUtil.m index ef09171cc..e779d2dbb 100644 --- a/SignalServiceKit/src/Util/MIMETypeUtil.m +++ b/SignalServiceKit/src/Util/MIMETypeUtil.m @@ -320,8 +320,6 @@ NSString *const kSyncMessageFileExtension = @"bin"; // Store the file in a subdirectory whose name is the uniqueId of this attachment, // to avoid collisions between multiple attachments with the same name. NSString *attachmentFolderPath = [folder stringByAppendingPathComponent:uniqueId]; - NSError *error = nil; - BOOL attachmentFolderPathExists = [[NSFileManager defaultManager] fileExistsAtPath:attachmentFolderPath]; if (![OWSFileSystem ensureDirectoryExists:attachmentFolderPath]) { return nil; }