Skip to content

Commit

Permalink
Use count directly on String
Browse files Browse the repository at this point in the history
  • Loading branch information
tingraldi committed Nov 3, 2017
1 parent a016be0 commit dc3e034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Samples/Xcode/Visit Web Repo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ let pathComponents = workspace.file!.pathComponents.filter {
if let URLString = commandOutput("/usr/bin/git",
withArguments: ["config", "--get", "remote.origin.url"],
currentDirectoryPath: NSString.path(withComponents: pathComponents)),
URLString.characters.count > 0 {
URLString.count > 0 {
let parts = (URLString as NSString).components(separatedBy: "@")
if parts.count == 2 {
let partOne = parts[1]
Expand Down

0 comments on commit dc3e034

Please sign in to comment.