Skip to content

Commit

Permalink
Me: ESLint fixes for decodeUserSettingsEntities method of user-settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ebinnion committed Dec 7, 2015
1 parent 0d4f29c commit a37d622
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions client/lib/user-settings/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,20 @@ var Emitter = require( 'lib/mixins/emitter' ),
wpcom = require( 'lib/wp' ).undocumented(),
user = require( 'lib/user' )();

/**
/*

This comment has been minimized.

Copy link
@retrofox

retrofox Dec 10, 2015

Contributor

jsdoc blocks start with /**

* Decodes entities in those specific user settings properties
* that the REST API returns already HTML-encoded
*/
function decodeUserSettingsEntities( data ) {
let decodedValues = {
display_name: data.display_name && decodeEntities( data.display_name ),
description: data.description && decodeEntities( data.description ),
user_URL: data.user_URL && decodeEntities( data.user_URL )
display_name: data.display_name && decodeEntities( data.display_name ),
description: data.description && decodeEntities( data.description ),
user_URL: data.user_URL && decodeEntities( data.user_URL )
};

return assign( {}, data, decodedValues );
}

/**
* Initialize UserSettings with defaults
*/
Expand Down

0 comments on commit a37d622

Please sign in to comment.