Skip to content

Commit 87fe9cd

Browse files
committed
Resolved formatting issue
1 parent d203ae0 commit 87fe9cd

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

lib/Api/torrent_api.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ class TorrentApi {
336336
);
337337
//if hashcheck is successful then return true else return false
338338
if (response.statusCode == 200) {
339-
return true;
339+
return true;
340340
} else {
341341
return false;
342342
}

lib/Components/torrent_tile.dart

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -96,22 +96,16 @@ class _TorrentTileState extends State<TorrentTile> {
9696
var result = await TorrentApi.checkTorrentHash(
9797
hashes: [widget.model.hash], context: context);
9898
if (result) {
99-
if(kDebugMode)
100-
print("check hash performed successfully");
99+
if (kDebugMode) print("check hash performed successfully");
101100
final addTorrentSnackbar = addFloodSnackBar(
102-
SnackbarType.success,
103-
'Hash check successful',
104-
'Dismiss');
101+
SnackbarType.success, 'Hash check successful', 'Dismiss');
105102

106103
ScaffoldMessenger.of(context)
107104
.showSnackBar(addTorrentSnackbar);
108105
} else {
109-
if(kDebugMode)
110-
print("Error check hash failed");
106+
if (kDebugMode) print("Error check hash failed");
111107
final addTorrentSnackbar = addFloodSnackBar(
112-
SnackbarType.caution,
113-
'Torrent hash failed',
114-
'Dismiss');
108+
SnackbarType.caution, 'Torrent hash failed', 'Dismiss');
115109

116110
ScaffoldMessenger.of(context)
117111
.showSnackBar(addTorrentSnackbar);

0 commit comments

Comments
 (0)