From 9dfd5799fc05fa5cfdd90ecec558ef2955f76bd2 Mon Sep 17 00:00:00 2001 From: kataras Date: Mon, 12 Jun 2017 04:50:47 +0300 Subject: [PATCH] ineffassign Former-commit-id: 756ac0316a8a78fce1252ac526a504bc8ea24009 --- core/router/fs.go | 1 - core/router/macro/interpreter/lexer/lexer.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/core/router/fs.go b/core/router/fs.go index 0fcfc26f..c0685cb0 100644 --- a/core/router/fs.go +++ b/core/router/fs.go @@ -787,7 +787,6 @@ func serveFile(ctx context.Context, fs http.FileSystem, name string, redirect bo defer ff.Close() dd, err := ff.Stat() if err == nil { - name = index d = dd f = ff } diff --git a/core/router/macro/interpreter/lexer/lexer.go b/core/router/macro/interpreter/lexer/lexer.go index e57822f3..7af0f085 100644 --- a/core/router/macro/interpreter/lexer/lexer.go +++ b/core/router/macro/interpreter/lexer/lexer.go @@ -114,7 +114,7 @@ func (l *Lexer) NextToken() (t token.Token) { // NextDynamicToken doesn't cares about the grammar. // It reads numbers or any unknown symbol, // it's being used by parser to skip all characters -// between parameter function's arguemnts inside parenthesis, +// between parameter function's arguments inside parenthesis, // in order to allow custom regexp on the end-language too. // // It moves the cursor forward.