mirror of
https://github.com/pd4d10/git-touch.git
synced 2026-04-29 19:13:36 -05:00
refactor: list scaffold
This commit is contained in:
@@ -119,7 +119,7 @@ List<T> join<T>(T seperator, List<T> xs) {
|
||||
List<T> joinAll<T>(T seperator, List<List<T>> xss) {
|
||||
List<T> result = [];
|
||||
xss.asMap().forEach((index, x) {
|
||||
if (x == null || x.isEmpty) return;
|
||||
if (x.isEmpty) return;
|
||||
|
||||
result.addAll(x);
|
||||
if (index < xss.length - 1) {
|
||||
@@ -136,11 +136,6 @@ bool isNotNullOrEmpty(String? text) {
|
||||
return text != null && text.isNotEmpty;
|
||||
}
|
||||
|
||||
String getBranchQueryKey(String branch, {bool withParams = false}) {
|
||||
if (branch == null) return 'defaultBranchRef';
|
||||
return 'ref' + (withParams ? '(qualifiedName: "$branch")' : '');
|
||||
}
|
||||
|
||||
// TODO: Primer
|
||||
class PrimerBranchName extends StatelessWidget {
|
||||
final String? name;
|
||||
|
||||
Reference in New Issue
Block a user