mirror of
https://github.com/kataras/iris.git
synced 2025-03-15 04:06:25 +01:00
ineffassign
Former-commit-id: 756ac0316a8a78fce1252ac526a504bc8ea24009
This commit is contained in:
parent
fb85ae15d5
commit
9dfd5799fc
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user