Browse files

Ack! Messed up the jshint again. I gotta get better about this.

  • Loading branch information...
1 parent 397c6ca commit e28594b94e4887c31e023ec41611a29c221ceb45 @eviltrout eviltrout committed Feb 25, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/assets/javascripts/discourse/models/topic.js
View
4 app/assets/javascripts/discourse/models/topic.js
@@ -267,14 +267,14 @@ Discourse.Topic = Discourse.Model.extend({
topic.set('errorLoading', true);
// If the result was 404 the post is not found
- if (result.status == 404) {
+ if (result.status === 404) {
topic.set('errorTitle', Em.String.i18n('topic.not_found.title'))
topic.set('message', Em.String.i18n('topic.not_found.description'));
return;
}
// If the result is 403 it means invalid access
- if (result.status == 403) {
+ if (result.status === 403) {
topic.set('errorTitle', Em.String.i18n('topic.invalid_access.title'))
topic.set('message', Em.String.i18n('topic.invalid_access.description'));
return;

0 comments on commit e28594b

Please sign in to comment.