Skip to content

Commit d5bb1dc

Browse files
sidlataugithub-actions[bot]
authored andcommitted
chore: formatting
1 parent 93e64d4 commit d5bb1dc

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

lua/flutter-tools/commands.lua

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,9 @@ end
192192
local function get_absolute_path(input_path)
193193
-- Check if the provided path is an absolute path
194194
if
195-
vim.fn.isdirectory(input_path) == 1
196-
and not input_path:match("^/")
197-
and not input_path:match("^%a:[/\\]")
195+
vim.fn.isdirectory(input_path) == 1
196+
and not input_path:match("^/")
197+
and not input_path:match("^%a:[/\\]")
198198
then
199199
-- It's a relative path, so expand it to an absolute path
200200
local absolute_path = vim.fn.fnamemodify(input_path, ":p")
@@ -237,23 +237,23 @@ local function has_flutter_dependency_in_pubspec(cwd)
237237
if not pubspec then return default_has_flutter_dependency end
238238
--https://github.com/Dart-Code/Dart-Code/blob/43914cd2709d77668e19a4edf3500f996d5c307b/src/shared/utils/fs.ts#L183
239239
return (
240-
pubspec.dependencies
241-
and (
242-
pubspec.dependencies.flutter
243-
or pubspec.dependencies.flutter_test
244-
or pubspec.dependencies.sky_engine
245-
or pubspec.dependencies.flutter_goldens
246-
)
247-
)
248-
or (
249-
pubspec.devDependencies
250-
and (
251-
pubspec.devDependencies.flutter
252-
or pubspec.devDependencies.flutter_test
253-
or pubspec.devDependencies.sky_engine
254-
or pubspec.devDependencies.flutter_goldens
255-
)
240+
pubspec.dependencies
241+
and (
242+
pubspec.dependencies.flutter
243+
or pubspec.dependencies.flutter_test
244+
or pubspec.dependencies.sky_engine
245+
or pubspec.dependencies.flutter_goldens
246+
)
247+
)
248+
or (
249+
pubspec.devDependencies
250+
and (
251+
pubspec.devDependencies.flutter
252+
or pubspec.devDependencies.flutter_test
253+
or pubspec.devDependencies.sky_engine
254+
or pubspec.devDependencies.flutter_goldens
256255
)
256+
)
257257
end
258258

259259
---@param opts RunOpts

0 commit comments

Comments
 (0)