mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
refactor: remove unnecessary local variables
This commit is contained in:
parent
cfa5268af2
commit
20ca75639d
48 changed files with 446 additions and 237 deletions
|
@ -9,9 +9,10 @@ class RefLog with IterableMixin<RefLogEntry> {
|
|||
///
|
||||
/// Throws a [LibGit2Error] if error occured.
|
||||
RefLog(Reference ref) {
|
||||
final repo = ref.owner;
|
||||
final name = ref.name;
|
||||
_reflogPointer = bindings.read(repoPointer: repo.pointer, name: name);
|
||||
_reflogPointer = bindings.read(
|
||||
repoPointer: ref.owner.pointer,
|
||||
name: ref.name,
|
||||
);
|
||||
}
|
||||
|
||||
/// Pointer to memory address for allocated reflog object.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue