Skip to content

Commit 821bee3

Browse files
committed
[swiftlint] Fix redundant_optional_initialization (i.e. don't need "= nil")
warning: Redundant Optional Initialization Violation: Initializing an optional variable with nil is redundant.
1 parent 4eb7ac1 commit 821bee3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Graph/Graph/AdjacencyListGraph.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import Foundation
1212
private class EdgeList<T> where T: Equatable, T: Hashable {
1313

1414
var vertex: Vertex<T>
15-
var edges: [Edge<T>]? = nil
15+
var edges: [Edge<T>]?
1616

1717
init(vertex: Vertex<T>) {
1818
self.vertex = vertex

0 commit comments

Comments
 (0)