Skip to content

Commit

Permalink
minor: use new eslint configuration file format
Browse files Browse the repository at this point in the history
  • Loading branch information
alekitto committed Jul 31, 2024
1 parent 43012bd commit 6c67071
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Factory/AbstractMetadataFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default class AbstractMetadataFactory extends implementationOf(MetadataFa

try {
return !! Class && ReflectionClass.exists(Class);
} catch (e) {
} catch {
return false;
}
}
Expand Down Expand Up @@ -129,7 +129,7 @@ export default class AbstractMetadataFactory extends implementationOf(MetadataFa
if (isFunction(value)) {
try {
return ReflectionClass.getClassName(value);
} catch (e) {
} catch {
// Do nothing.
}
}
Expand All @@ -149,7 +149,7 @@ export default class AbstractMetadataFactory extends implementationOf(MetadataFa
if (isObject(value)) {
try {
return ReflectionClass.getClassName(value);
} catch (e) {
} catch {
return false;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Factory/MetadataFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default class MetadataFactory extends AbstractMetadataFactory {
}

this._metadataClass = reflectionClass.getConstructor();
} catch (e) {
} catch {
throw InvalidArgumentException.create(InvalidArgumentException.INVALID_METADATA_CLASS, metadataClass);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Loader/FilesLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default class FilesLoader extends ChainLoader {
__construct(paths, loaderClass = null) {
try {
loaderClass = ReflectionClass.getClass(loaderClass);
} catch (e) {
} catch {
loaderClass = null;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Loader/Processor/ProcessorFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default class ProcessorFactory extends implementationOf(ProcessorFactoryI
registerProcessor(metadataClass, processorClass) {
try {
metadataClass = ReflectionClass.getClassName(metadataClass);
} catch (e) {
} catch {
// Do nothing.
}

Expand Down

0 comments on commit 6c67071

Please sign in to comment.