Skip to content

Commit

Permalink
fix(kiwi-injector): changed were occurs errors in kiwi injector gener…
Browse files Browse the repository at this point in the history
…ator.
  • Loading branch information
gbtb16 committed Jan 15, 2024
1 parent 974f051 commit fe110bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kiwi_generator/lib/src/kiwi_injector_generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import 'package:kiwi/kiwi.dart';

const TypeChecker _registerTypeChecker = TypeChecker.fromRuntime(Register);

bool _isRegisterMethod(MethodElement method) => method.returnType.isVoid && _registerTypeChecker.hasAnnotationOfExact(method);
bool _isRegisterMethod(MethodElement method) => (method.returnType is VoidType && _registerTypeChecker.hasAnnotationOfExact(method));

class KiwiInjectorGenerator extends Generator {
const KiwiInjectorGenerator();
Expand Down

0 comments on commit fe110bc

Please sign in to comment.