Skip to content

Commit

Permalink
Updated code based on PR.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevbite committed Oct 29, 2016
1 parent 3b9b5b4 commit 5500d2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Connect4.js/src/app/connect4-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ export default class {
}

registerTeam(teamName: string, password: string): Promise<IResponse<string>> {
const qs = querystring.stringify({ teamName: teamName, password: password });
const qs = querystring.stringify({ teamName, password });
return this.do<string>('POST', `/api/Register?${qs}`);
}

makeMove(playerId: string, password: string, columnNumber: number): Promise<IResponse<void>> {
const qs = querystring.stringify({ playerID: playerId, columnNumber: columnNumber, password: password });
const qs = querystring.stringify({ playerID: playerId, columnNumber, password });
return this.do<void>('POST', `/api/MakeMove?${qs}`);
}

Expand Down
2 changes: 1 addition & 1 deletion Connect4.js/src/test/app.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import * as assert from 'assert'

// I should of really written some test... :-/
// I should have of really written some test... :-/

0 comments on commit 5500d2f

Please sign in to comment.