Skip to content
Browse files

Remove warnings "(...) interpreted as grouped expression"

  • Loading branch information...
1 parent 6f79153 commit bdde7a51a851d080c2d91365d330d8fe48838c4c @kachick kachick committed
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/graphviz.rb
  2. +2 −2 lib/graphviz/edge.rb
View
2 lib/graphviz.rb
@@ -764,7 +764,7 @@ def complete!
# Return true if the graph is directed.
def directed?
- not (/digraph/ =~ "bla digraph bla").nil?
+ not((/digraph/ =~ "bla digraph bla").nil?)
end
def has_parent_graph?
View
4 lib/graphviz/edge.rb
@@ -45,7 +45,7 @@ def initialize( vNodeOne, vNodeTwo, parent_graph )
# Return the node one as string (so with port if any)
def node_one( with_port = true )
- if not (@node_one_port and with_port)
+ if not(@node_one_port and with_port)
GraphViz.escape(@node_one_id)
else
GraphViz.escape(@node_one_id, :force => true) + ":#{@node_one_port}"
@@ -55,7 +55,7 @@ def node_one( with_port = true )
# Return the node two as string (so with port if any)
def node_two( with_port = true )
- if not (@node_two_port and with_port)
+ if not(@node_two_port and with_port)
GraphViz.escape(@node_two_id)
else
GraphViz.escape(@node_two_id, :force => true) + ":#{@node_two_port}"

0 comments on commit bdde7a5

Please sign in to comment.
Something went wrong with that request. Please try again.