mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
refactor!: use named arguments if there is more than one
This commit is contained in:
parent
ec80ad3dd4
commit
5f7fdf4bd3
66 changed files with 1920 additions and 1136 deletions
|
@ -27,9 +27,14 @@ class Signature {
|
|||
libgit2.git_libgit2_init();
|
||||
|
||||
if (time == null) {
|
||||
_signaturePointer = bindings.now(name, email);
|
||||
_signaturePointer = bindings.now(name: name, email: email);
|
||||
} else {
|
||||
_signaturePointer = bindings.create(name, email, time, offset);
|
||||
_signaturePointer = bindings.create(
|
||||
name: name,
|
||||
email: email,
|
||||
time: time,
|
||||
offset: offset,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue