Skip to content

Minor code simplification for Containers api#2678

Merged
crosbymichael merged 1 commit intomoby:masterfrom
cxmcc:minor
Nov 22, 2013
Merged

Minor code simplification for Containers api#2678
crosbymichael merged 1 commit intomoby:masterfrom
cxmcc:minor

Conversation

@cxmcc
Copy link
Copy Markdown
Contributor

@cxmcc cxmcc commented Nov 13, 2013

Just a little bit simpler. Also should stop comparing container ids when "beforeId" is found.

@vieux
Copy link
Copy Markdown
Contributor

vieux commented Nov 13, 2013

could you please gofmt -w -s server.go and squash please ?

Thanks,

LGTM, ping @creack @crosbymichael

@cxmcc
Copy link
Copy Markdown
Contributor Author

cxmcc commented Nov 13, 2013

@vieux thanks,

I did "gofmt -w -s server.go", but it does not show a diff here.

@vieux
Copy link
Copy Markdown
Contributor

vieux commented Nov 14, 2013

I do see them, there is one space

@tianon
Copy link
Copy Markdown
Member

tianon commented Nov 14, 2013

Perhaps a go version issue? You could try doing it from inside the docker container with a mounted volume.

@cxmcc
Copy link
Copy Markdown
Contributor Author

cxmcc commented Nov 14, 2013

This is kinda weird.. I tried 1.0.1, 1.1.2, 1.2rc4 linux amd64 binary of go. All of them gave me the same result, @tianon I tried that too.

I can get a diff for server_test.go but not server.go.

@vieux
Copy link
Copy Markdown
Contributor

vieux commented Nov 14, 2013

@cxmcc fixed in master

ping @crosbymichael

@crosbymichael
Copy link
Copy Markdown
Contributor

LGTM

crosbymichael added a commit that referenced this pull request Nov 22, 2013
Minor code simplification for Containers api
@crosbymichael crosbymichael merged commit d6e6214 into moby:master Nov 22, 2013
@cxmcc cxmcc deleted the minor branch November 23, 2013 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants