mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
style: stricter linting
This commit is contained in:
parent
ae5d895957
commit
7148fbf194
8 changed files with 15 additions and 9 deletions
|
@ -70,7 +70,7 @@ class Repository {
|
|||
}) {
|
||||
libgit2.git_libgit2_init();
|
||||
|
||||
int flagsInt = flags.fold(0, (acc, e) => acc | e.value);
|
||||
var flagsInt = flags.fold(0, (int acc, e) => acc | e.value);
|
||||
|
||||
if (bare) {
|
||||
flagsInt |= GitRepositoryInit.bare.value;
|
||||
|
@ -1162,7 +1162,7 @@ class Repository {
|
|||
String? directory,
|
||||
List<String>? paths,
|
||||
}) {
|
||||
final int strat = strategy.fold(0, (acc, e) => acc | e.value);
|
||||
final strat = strategy.fold(0, (int acc, e) => acc | e.value);
|
||||
|
||||
if (refName == null) {
|
||||
checkout_bindings.index(
|
||||
|
@ -1274,7 +1274,7 @@ class Repository {
|
|||
int contextLines = 3,
|
||||
int interhunkLines = 0,
|
||||
}) {
|
||||
final int flagsInt = flags.fold(0, (acc, e) => acc | e.value);
|
||||
final flagsInt = flags.fold(0, (int acc, e) => acc | e.value);
|
||||
|
||||
if (a is Tree && b is Tree) {
|
||||
return Diff(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue