Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
olasaadi99 committed Jan 14, 2024
1 parent 9c32dd1 commit 78696e2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/vpcmodel/semanticDiff.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,11 @@ func (diffCfgs *diffBetweenCfgs) String() string {
func (diffCfgs *diffBetweenCfgs) HasStatelessConns() bool {
unStateFul := false
for _, grouped := range diffCfgs.groupedLines {
unStateFul = unStateFul || (grouped.commonProperties.connDiff.conn1 != nil && grouped.commonProperties.connDiff.conn1.IsStateful == common.StatefulFalse) || (grouped.commonProperties.connDiff.conn2 != nil && grouped.commonProperties.connDiff.conn2.IsStateful == common.StatefulFalse)
unStateFul = unStateFul ||
(grouped.commonProperties.connDiff.conn1 != nil &&
grouped.commonProperties.connDiff.conn1.IsStateful == common.StatefulFalse) ||
(grouped.commonProperties.connDiff.conn2 != nil &&
grouped.commonProperties.connDiff.conn2.IsStateful == common.StatefulFalse)
}
return unStateFul
}
Expand Down

0 comments on commit 78696e2

Please sign in to comment.