Skip to content

Commit

Permalink
Warning correction for unused return function
Browse files Browse the repository at this point in the history
  • Loading branch information
gonini committed Jan 4, 2017
1 parent fc208c6 commit 017351f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class Graph: CustomStringConvertible, Equatable {
let duplicated = Graph()

for node in nodes {
duplicated.addNode(node.label)
_ = duplicated.addNode(node.label)
}

for node in nodes {
Expand Down
2 changes: 1 addition & 1 deletion Minimum Spanning Tree (Unweighted)/Tests/Graph.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public class Graph: CustomStringConvertible, Equatable {
let duplicated = Graph()

for node in nodes {
duplicated.addNode(node.label)
_ = duplicated.addNode(node.label)
}

for node in nodes {
Expand Down

0 comments on commit 017351f

Please sign in to comment.