Skip to content

Commit

Permalink
Ensure newline at EOF
Browse files Browse the repository at this point in the history
  • Loading branch information
bcardarella committed Jun 3, 2021
1 parent 03acd94 commit 21f3e26
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion assets/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"presets": [
"@babel/preset-env"
]
}
}
1 change: 1 addition & 0 deletions assets/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ module.exports = {

}
],
"eol-last": ["error", "always"],
"no-unused-vars": [
"error",
{
Expand Down
2 changes: 1 addition & 1 deletion assets/js/phoenix/channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,4 +314,4 @@ export default class Channel {
* @private
*/
isLeaving(){ return this.state === CHANNEL_STATES.leaving }
}
}
2 changes: 1 addition & 1 deletion assets/js/phoenix/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ export const CHANNEL_LIFECYCLE_EVENTS = [
export const TRANSPORTS = {
longpoll: "longpoll",
websocket: "websocket"
}
}
2 changes: 1 addition & 1 deletion assets/js/phoenix/longpoll.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,4 @@ export default class LongPoll {
this.readyState = SOCKET_STATES.closed
this.onclose()
}
}
}
2 changes: 1 addition & 1 deletion assets/js/phoenix/push.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,4 @@ export default class Push {
trigger(status, response){
this.channel.trigger(this.refEvent, {status, response})
}
}
}
2 changes: 1 addition & 1 deletion assets/js/phoenix/serializer.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,4 @@ export default {

return {join_ref: null, ref: null, topic: topic, event: event, payload: data}
}
}
}
2 changes: 1 addition & 1 deletion assets/js/phoenix/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -505,4 +505,4 @@ export default class Socket {
dupChannel.leave()
}
}
}
}
2 changes: 1 addition & 1 deletion assets/js/phoenix/timer.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ export default class Timer {
this.callback()
}, this.timerCalc(this.tries + 1))
}
}
}
2 changes: 1 addition & 1 deletion assets/js/phoenix/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ export let closure = (value) => {
let closure = function (){ return value }
return closure
}
}
}
2 changes: 1 addition & 1 deletion assets/test/presence_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,4 +236,4 @@ describe("instance", function(){
channelStub.trigger("the_diff", {joins: {}, leaves: {user1: user1}})
assert.deepEqual(presence.list(listByFirst), [])
})
})
})
2 changes: 1 addition & 1 deletion assets/test/serializer.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ export const decode = (rawPayload) => {
let [join_ref, ref, topic, event, payload] = JSON.parse(rawPayload)

return {join_ref, ref, topic, event, payload}
}
}
2 changes: 1 addition & 1 deletion assets/test/socket_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {Socket, LongPoll} from "../js/phoenix"

let socket

describe("with transports", function(done){
describe("with transports", function(){
before(function(){
window.WebSocket = WebSocket
window.XMLHttpRequest = sinon.useFakeXMLHttpRequest()
Expand Down
2 changes: 1 addition & 1 deletion assets/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ module.exports = (env, options) => {
},
plugins: []
}
}
}

0 comments on commit 21f3e26

Please sign in to comment.