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

Unified Diff: src/cmd/gofix/httpfs.go

Issue 5448088: code review 5448088: cmd: shorten composite literal field values (Closed)
Patch Set: diff -r f91f50b96e10 https://go.googlecode.com/hg/ Created 12 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/cmd/gofix/httpfs.go
===================================================================
--- a/src/cmd/gofix/httpfs.go
+++ b/src/cmd/gofix/httpfs.go
@@ -40,7 +40,7 @@
dir, prefix := call.Args[0], call.Args[1]
call.Args = []ast.Expr{&ast.CallExpr{
Fun: &ast.SelectorExpr{ast.NewIdent("http"), ast.NewIdent("Dir")},
- Args: []ast.Expr{dir},
+ Args: {dir},
gri 2011/12/02 23:11:05 I'd leave this file alone - no real win
}}
wrapInStripHandler := true
if prefixLit, ok := prefix.(*ast.BasicLit); ok {

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