Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(172)

Issue 7363045: code review 7363045: mime: use Scanner to read mime files during init (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years ago by r
Modified:
12 years ago
Reviewers:
CC:
bradfitz, golang-dev
Visibility:
Public.

Description

mime: use Scanner to read mime files during init Also close the file when we're done.

Patch Set 1 #

Total comments: 2

Patch Set 2 : diff -r ac7cf6ff2de8 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -8 lines) Patch
M src/pkg/mime/type_unix.go View 1 2 chunks +7 lines, -8 lines 0 comments Download

Messages

Total messages: 3
r
Hello bradfitz (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
12 years ago (2013-02-20 21:03:36 UTC) #1
bradfitz
LGTM https://codereview.appspot.com/7363045/diff/1/src/pkg/mime/type_unix.go File src/pkg/mime/type_unix.go (right): https://codereview.appspot.com/7363045/diff/1/src/pkg/mime/type_unix.go#newcode26 src/pkg/mime/type_unix.go:26: defer f.Close() nice https://codereview.appspot.com/7363045/diff/1/src/pkg/mime/type_unix.go#newcode42 src/pkg/mime/type_unix.go:42: // TODO: check ...
12 years ago (2013-02-20 22:18:28 UTC) #2
r
12 years ago (2013-02-20 22:34:05 UTC) #3
*** Submitted as https://code.google.com/p/go/source/detail?r=5bb68f12d0a9 ***

mime: use Scanner to read mime files during init
Also close the file when we're done.

R=bradfitz
CC=golang-dev
https://codereview.appspot.com/7363045
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b