Skip to content

Commit 41a7cc3

Browse files
come-ncnextcloud-command
authored andcommitted
chore: npm run lint:fix
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent 694ba7c commit 41a7cc3

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

apps/user_ldap/src/services/ldapConfigService.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,7 @@ export async function deleteConfig(configId: string): Promise<boolean> {
117117
export async function testConfiguration(configId: string) {
118118
const params = new FormData()
119119

120-
const response = await axios.post(
121-
generateOcsUrl('apps/user_ldap/api/v1/config/{configId}/test', { configId }),
122-
) as AxiosResponse<OCSResponse<{ success: boolean, message: string }>>
120+
const response = await axios.post(generateOcsUrl('apps/user_ldap/api/v1/config/{configId}/test', { configId })) as AxiosResponse<OCSResponse<{ success: boolean, message: string }>>
123121

124122
logger.debug(`Configuration is ${response.data.ocs.data.success ? 'valide' : 'invalide'}`, { configId, params, response })
125123

@@ -142,7 +140,7 @@ export async function clearMapping(subject: 'user' | 'group') {
142140
try {
143141
const response = await axios.post(
144142
generateOcsUrl('apps/user_ldap/api/v1/wizard/clearMappings'),
145-
{ subject: subject },
143+
{ subject },
146144
) as AxiosResponse<OCSResponse>
147145

148146
logger.debug('Cleared mapping', { subject, params, response })

core/src/files/fileinfo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import _ from 'underscore'
1111
* @class OC.Files.FileInfo
1212
* @classdesc File information
1313
*
14-
* @param {Object} data file data, see attributes for details
14+
* @param {object} data file data, see attributes for details
1515
*
1616
* @since 8.2
1717
*/

0 commit comments

Comments
 (0)