File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -336,7 +336,7 @@ class TorrentApi {
336
336
);
337
337
//if hashcheck is successful then return true else return false
338
338
if (response.statusCode == 200 ) {
339
- return true ;
339
+ return true ;
340
340
} else {
341
341
return false ;
342
342
}
Original file line number Diff line number Diff line change @@ -96,22 +96,16 @@ class _TorrentTileState extends State<TorrentTile> {
96
96
var result = await TorrentApi .checkTorrentHash (
97
97
hashes: [widget.model.hash], context: context);
98
98
if (result) {
99
- if (kDebugMode)
100
- print ("check hash performed successfully" );
99
+ if (kDebugMode) print ("check hash performed successfully" );
101
100
final addTorrentSnackbar = addFloodSnackBar (
102
- SnackbarType .success,
103
- 'Hash check successful' ,
104
- 'Dismiss' );
101
+ SnackbarType .success, 'Hash check successful' , 'Dismiss' );
105
102
106
103
ScaffoldMessenger .of (context)
107
104
.showSnackBar (addTorrentSnackbar);
108
105
} else {
109
- if (kDebugMode)
110
- print ("Error check hash failed" );
106
+ if (kDebugMode) print ("Error check hash failed" );
111
107
final addTorrentSnackbar = addFloodSnackBar (
112
- SnackbarType .caution,
113
- 'Torrent hash failed' ,
114
- 'Dismiss' );
108
+ SnackbarType .caution, 'Torrent hash failed' , 'Dismiss' );
115
109
116
110
ScaffoldMessenger .of (context)
117
111
.showSnackBar (addTorrentSnackbar);
You can’t perform that action at this time.
0 commit comments