Skip to content

Commit

Permalink
Improved DBusInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Nov 4, 2018
1 parent 1ff56f6 commit ab46545
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/DBus/Interface.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ internal extension DBusInterface {
var elements = [Element]()
elements.reserveCapacity(pathStrings.count) // pre-allocate buffer

for elementString in pathStrings {
for substring in pathStrings {

guard let element = Element(rawValue: String(elementString))
guard let element = Element(substring: substring)
else { return nil }

elements.append(element)
Expand Down

0 comments on commit ab46545

Please sign in to comment.