diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 2fdf907..0000000 Binary files a/.DS_Store and /dev/null differ diff --git a/.pubignore b/.pubignore new file mode 100644 index 0000000..34bee9c --- /dev/null +++ b/.pubignore @@ -0,0 +1,6 @@ +# Exclude from published package (see https://dart.dev/go/pubignore). +.DS_Store +test/.DS_Store +test/mock/.DS_Store +coverage/ +coverage_badge.svg diff --git a/lib/src/helper/Automate.dart b/lib/src/helper/Automate.dart index 09e4a42..52d4378 100644 --- a/lib/src/helper/Automate.dart +++ b/lib/src/helper/Automate.dart @@ -63,9 +63,7 @@ class Automate { if (availableKeys.length == 1) { var varContent = entry[key]; if (varContent is String || varContent is List || varContent is Map) { - if (callback != null) { - entry[key] = callback(varContent); - } + entry[key] = callback(varContent); } } else { availableKeys.remove(key); diff --git a/pubspec.yaml b/pubspec.yaml index cca5f5f..b88c377 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: contentstack_utils description: Utils package for Contentstack-dart -version: 1.1.1 +version: 2.0.0 homepage: https://www.contentstack.com environment: diff --git a/test/.DS_Store b/test/.DS_Store deleted file mode 100644 index 910c33b..0000000 Binary files a/test/.DS_Store and /dev/null differ diff --git a/test/mock/.DS_Store b/test/mock/.DS_Store deleted file mode 100644 index c8beb82..0000000 Binary files a/test/mock/.DS_Store and /dev/null differ