Skip to content

Commit

Permalink
gofmt -s -w
Browse files Browse the repository at this point in the history
  • Loading branch information
astaxie committed Mar 11, 2016
1 parent 40b41cc commit 83fe43f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion logs/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func (bl *BeeLogger) SetLogger(adapterName string, config string) error {
return fmt.Errorf("logs: duplicate adaptername %q (you have set this logger before)", adapterName)
}
}

log, ok := adapters[adapterName]
if !ok {
return fmt.Errorf("logs: unknown adaptername %q (forgotten Register?)", adapterName)
Expand Down
1 change: 0 additions & 1 deletion logs/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.


package logs

import (
Expand Down
4 changes: 2 additions & 2 deletions tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func (t *Tree) addtree(segments []string, tree *Tree, wildcards []string, reg st
regexpStr = "([^.]+).(.+)"
params = params[1:]
} else {
for _ = range params {
for range params {
regexpStr = "([^/]+)/" + regexpStr
}
}
Expand Down Expand Up @@ -254,7 +254,7 @@ func (t *Tree) addseg(segments []string, route interface{}, wildcards []string,
regexpStr = "/([^.]+).(.+)"
params = params[1:]
} else {
for _ = range params {
for range params {
regexpStr = "/([^/]+)" + regexpStr
}
}
Expand Down

0 comments on commit 83fe43f

Please sign in to comment.