Skip to content

Commit

Permalink
Fix warnings + linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
AliSoftware committed Oct 23, 2015
1 parent 4850e34 commit 333dabf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OHHTTPStubs/Sources/OHHTTPStubsResponse.m
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ -(instancetype)initWithFileURL:(NSURL *)fileURL

NSNumber *fileSize;
NSError *error;
const BOOL success = [fileURL getResourceValue:&fileSize forKey:NSURLFileSizeKey error:&error];
const BOOL success __unused = [fileURL getResourceValue:&fileSize forKey:NSURLFileSizeKey error:&error];

NSAssert(success && fileSize, @"%s Couldn't get the file size for URL. \
The URL was: %@. \
Expand Down
1 change: 1 addition & 0 deletions OHHTTPStubs/Sources/Swift/OHHTTPStubsSwift.swift
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ public func isExtension(ext: String) -> OHHTTPStubsTestBlock {
* (1) using `[q:""]`, which matches a query parameter "?q=" with an empty value, and
* (2) using `[q:nil]`, which matches a query parameter "?q" without a value at all
*/
@available(iOS 8.0, OSX 10.10, *)
public func containsQueryParams(params: [String:String?]) -> OHHTTPStubsTestBlock {
return { req in
if let url = req.URL {
Expand Down

0 comments on commit 333dabf

Please sign in to comment.