update for swift 4.0 nuances

This commit is contained in:
Jake Van Alstyne 🎩 2017-11-10 15:21:35 -07:00
parent 6a59e6557e
commit efe1d6eeeb
2 changed files with 5 additions and 3 deletions

View File

@ -1025,6 +1025,7 @@
PRODUCT_BUNDLE_IDENTIFIER = "org.libgit2.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = SwiftGit2;
SWIFT_INCLUDE_PATHS = "$(SRCROOT)/libgit2";
SWIFT_VERSION = 4.0;
};
name = Debug;
};
@ -1053,6 +1054,7 @@
PRODUCT_BUNDLE_IDENTIFIER = "org.libgit2.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = SwiftGit2;
SWIFT_INCLUDE_PATHS = "$(SRCROOT)/libgit2";
SWIFT_VERSION = 4.0;
};
name = Release;
};

View File

@ -476,7 +476,7 @@ final public class Repository {
guard result == GIT_OK.rawValue else {
return Result.failure(NSError(gitError: result, pointOfFailure: "git_repository_set_head"))
}
return Result.success()
return Result.success(())
}
/// Set HEAD to the given reference.
@ -488,7 +488,7 @@ final public class Repository {
guard result == GIT_OK.rawValue else {
return Result.failure(NSError(gitError: result, pointOfFailure: "git_repository_set_head"))
}
return Result.success()
return Result.success(())
}
/// Check out HEAD.
@ -504,7 +504,7 @@ final public class Repository {
return Result.failure(NSError(gitError: result, pointOfFailure: "git_checkout_head"))
}
return Result.success()
return Result.success(())
}
/// Check out the given OID.