This is an automated email from the ASF dual-hosted git repository.

chenguangsheng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/eventmesh-workflow.git

commit e5698eb4ae30393f6e0c6d6482a88878f3f68c20
Author: Harshitha Sudhakar 
<[email protected]>
AuthorDate: Sat Apr 22 12:59:51 2023 +0530

    Update rune_stack.go
    
    if block ends with a return statement, so dropped this else and outdented 
its block
---
 third_party/lexer/rune_stack.go | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/third_party/lexer/rune_stack.go b/third_party/lexer/rune_stack.go
index b0a6fef..2f8bed5 100644
--- a/third_party/lexer/rune_stack.go
+++ b/third_party/lexer/rune_stack.go
@@ -41,11 +41,10 @@ func (s *runeStack) push(r rune) {
 func (s *runeStack) pop() rune {
        if s.start == nil {
                return EOFRune
-       } else {
-               n := s.start
-               s.start = n.next
-               return n.r
        }
+       n := s.start
+       s.start = n.next
+       return n.r
 }
 
 func (s *runeStack) clear() {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to