ineffassign

Former-commit-id: 756ac0316a8a78fce1252ac526a504bc8ea24009
This commit is contained in:
kataras 2017-06-12 04:50:47 +03:00
parent fb85ae15d5
commit 9dfd5799fc
2 changed files with 1 additions and 2 deletions

View File

@ -787,7 +787,6 @@ func serveFile(ctx context.Context, fs http.FileSystem, name string, redirect bo
defer ff.Close() defer ff.Close()
dd, err := ff.Stat() dd, err := ff.Stat()
if err == nil { if err == nil {
name = index
d = dd d = dd
f = ff f = ff
} }

View File

@ -114,7 +114,7 @@ func (l *Lexer) NextToken() (t token.Token) {
// NextDynamicToken doesn't cares about the grammar. // NextDynamicToken doesn't cares about the grammar.
// It reads numbers or any unknown symbol, // It reads numbers or any unknown symbol,
// it's being used by parser to skip all characters // 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. // in order to allow custom regexp on the end-language too.
// //
// It moves the cursor forward. // It moves the cursor forward.